221
reputation
2
7

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
2
questions
~353
people reached
  • Zürich, Switzerland
  • Member for 3 years, 7 months
  • 2 profile views
  • Last seen 1 hour ago

Top tags (7)

Score 2
Posts 2
Posts % 67
Score 2
Posts 2
Score 2
Posts 2
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (3)

Badges (9)

Gold

Silver

2

Rarest

Bronze

7

Rarest