620
reputation
4
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
~22k
people reached
  • Zürich, Switzerland
  • Member for 4 years, 11 months
  • 46 profile views
  • Last seen 4 hours ago

Top tags (18)

Score 21
Posts 4
Posts % 67
Score 18
Posts 1
Score 18
Posts 1
Score 12
Posts 1
Score 12
Posts 1
Score 12
Posts 1

Top posts (6) All Questions Answers | Votes Newest

Badges (14)

Gold

Silver

4

Rarest

Bronze

10

Rarest