Skip to main content
Graipher's user avatar
Graipher's user avatar
Graipher's user avatar
Graipher
  • Member for 9 years, 9 months
  • Last seen more than 2 years ago

Stats

41,660
reputation
3k
reached
5
answers
1
question
Loading…

About

def prime_sieve(limit): prime = [True] * limit prime[0] = prime[1] = False for i, is_prime in enumerate(prime): if is_prime: yield i for n in range(i * i, limit, i): prime[n] = False 

http://codereview.stackexchange.com/a/150447/98493

This user doesn’t have any gold badges yet.
9
silver badges
12
bronze badges
40
Score
6
Posts
100
Posts %
10
Score
1
Posts
17
Posts %
10
Score
1
Posts
17
Posts %
9
Score
1
Posts
17
Posts %
9
Score
1
Posts
17
Posts %
3
Score
1
Posts
17
Posts %