966
reputation
9
14

Graipher
Loading…

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

10
answers
1
question
~54k
people reached
  • Köln, Deutschland
  • Member for 10 years, 2 months
  • 46 profile views
  • Last seen yesterday

Top tags (25)

Score 29
Posts 2
Posts % 18
Score 28
Posts 2
Score 28
Posts 2
Score 28
Posts 1
Score 28
Posts 1
Score 28
Posts 1

Top posts (11)

View all questions and answers

Badges (23)

Gold

Silver

9

Rarest

Bronze

14

Rarest