640
reputation
5
10

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

6
answers
0
questions
~25k
people reached
  • Köln, Deutschland
  • Member for 6 years, 1 month
  • 55 profile views
  • Last seen 1 hour ago

Top tags (18)

Score 22
Posts 4
Posts % 67
Score 19
Posts 1
Score 19
Posts 1
Score 12
Posts 1
Score 12
Posts 1
Score 12
Posts 1

Top posts (6)

Badges (15)

Gold

Silver

5

Rarest

Bronze

10

Rarest