211
reputation
1
5

Graipher

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

1
answer
0
questions
~2k
people reached
  • Köln, Deutschland
  • Member for 4 years, 9 months
  • 3 profile views
  • Last seen yesterday

Top tags (5)

Score 11
Posts 1
Score 11
Posts 1
Score 11
Posts 1
Score 11
Posts 1
Score 11
Posts 1

Top posts (1)

Badges (6)

Gold

Silver

1

Rarest

Bronze

5

Rarest