Advertisement
Guest User

Untitled

a guest
Aug 19th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. import math
  2.  
  3. #criba = [True] * int(math.sqrt(1000000000))
  4. criba = [True] * 100
  5.  
  6. n = len(criba)
  7.  
  8. for i in xrange(2, n + 1):
  9.     for j in xrange(i * i, n + 1, i):
  10.         criba[j - 1] = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement