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

4
answers
0
questions
~7k
people reached
  • Zürich, Switzerland
  • Member for 4 years, 2 months
  • 13 profile views
  • Last seen 18 hours ago

Top tags (12)

Score 18
Posts 3
Posts % 75
Score 14
Posts 1
Score 14
Posts 1
Score 3
Posts 1
Score 3
Posts 1
Score 1
Posts 1

Top posts (4) All Questions Answers | Votes Newest

Badges (12)

Gold

Silver

3

Rarest

Bronze

9

Rarest