Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cand=2
- test=(2,3)
- count=1
- while(count<100):
- for n in test:
- if cand%n==0:
- cand=cand+1
- else:count=count+1
- if count == 100:
- print cand
- test+=(cand,) ##This will append cand into test.
- print test ##Another good idea to print some results so you can see what is happening.
Advertisement
Add Comment
Please, Sign In to add comment