39,018
reputation
4
12

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

5
answers
1
question
~2k
people reached
  • Zürich, Switzerland
  • Member for 4 years, 9 months
  • 22 profile views
  • Last seen Nov 13 at 14:52

Top tags (7)

Score 40
Posts 6
Posts % 100
Score 10
Posts 1
Score 10
Posts 1
Score 9
Posts 1
Score 9
Posts 1
Score 3
Posts 1

Top posts (6)

Badges (16)

Gold

Silver

4

Rarest

Bronze

12

Rarest