300
reputation
3
9

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
0
questions
~7k
people reached
  • Zürich, Switzerland
  • Member for 4 years, 10 months
  • 15 profile views
  • Last seen 22 hours ago

Top tags (15)

Score 18
Posts 3
Posts % 60
Score 14
Posts 1
Score 14
Posts 1
Score 3
Posts 1
Score 3
Posts 1
Score 1
Posts 1

Top posts (5)

Badges (12)

Gold

Silver

3

Rarest

Bronze

9

Rarest