896
reputation
7
13

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

9
answers
1
question
~38k
people reached
  • Zürich, Switzerland
  • Member for 8 years, 8 months
  • 41 profile views
  • Last seen Jan 21 at 7:31

Top tags (22)

Score 27
Posts 2
Posts % 20
Score 27
Posts 2
Score 27
Posts 1
Score 27
Posts 1
Score 27
Posts 1
Score 23
Posts 2

Top posts (10) All Questions Answers | Votes Newest

Badges (20)

Gold

Silver

7

Rarest

Bronze

13

Rarest