Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num =2
- stahp_it = 0
- while stahp_it < 20:
- for i in range(2, num):
- if num % i == 0:
- num += 1
- else:
- print "%d is prime" % num, stahp_it
- num += 1
- stahp_it += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement