35,081
reputation
6
53
113

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

676
answers
10
questions
~1.0m
people reached
  • Zürich, Switzerland
  • Member for 3 years, 11 months
  • 2,180 profile views
  • Last seen 2 hours ago

Top tags (247)

Score 2,864
Posts 681
Posts % 99
Score 1,226
Posts 271
Score 561
Posts 124
Score 381
Posts 91
Score 312
Posts 78
Score 215
Posts 38

Top posts (686) All Questions Answers | Votes Newest

View all questions and answers

Badges (172)

Gold

6

Rarest

Silver

53

Rarest

Bronze

113

Rarest