Guest User

Untitled

a guest
Jun 23rd, 2011
1,332
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x = [2,]
  2.  
  3. for i in xrange(3, 200000, 2):
  4.     simple = True
  5.     for j in x:
  6.         if i % j == 0:
  7.             simple = False
  8.             break
  9.     if simple:
  10.         x.append(i)
  11.  
  12. print x
RAW Paste Data