Advertisement
Peaser

Print Primes

Jul 30th, 2014
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. for k in range(1,5001):
  2.     v=True
  3.     for i in range(2,k):
  4.         if (k%i==0):v=False
  5.     if v:print k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement