331
reputation
1
6

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

2
answers
0
questions
~10k
people reached
  • Zürich, Switzerland
  • Member for 2 years, 1 month
  • 4 profile views
  • Last seen May 10 at 6:48

Top tags (6)

Score 13
Posts 1
Posts % 50
Score 13
Posts 1
Score 13
Posts 1
Score 13
Posts 1
Score 13
Posts 1
Score 10
Posts 1

Top posts (2)

Badges (7)

Gold

Silver

1

Rarest

Bronze

6

Rarest