38,503
reputation
6
57
119

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

746
answers
11
questions
~1.2m
people reached
  • Zürich, Switzerland
  • Member for 4 years, 5 months
  • 2,404 profile views
  • Last seen 15 mins ago

Top tags (251)

Score 3,139
Posts 752
Posts % 99
Score 1,355
Posts 306
Score 596
Posts 130
Score 420
Posts 102
Score 312
Posts 78
Score 230
Posts 42

Top posts (757)

View all questions and answers

Badges (182)

Gold

6

Rarest

Silver

57

Rarest

Bronze

119

Rarest