39,911
reputation
5
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
  • Köln, Deutschland
  • Member for 5 years, 2 months
  • 24 profile views
  • Last seen 2 days ago

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 (17)

Gold

Silver

5

Rarest

Bronze

12

Rarest