28,989
reputation
5
46
102

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 xrange(i * i, limit, i):
                prime[n] = False

http://codereview.stackexchange.com/a/150447/98493

581
answers
8
questions
~787k
people reached
  • Zürich, Switzerland
  • Member for 3 years, 5 months
  • 1,791 profile views
  • Last seen 11 hours ago

Top tags (233)

Score 2,381
Posts 584
Posts % 99
Score 973
Posts 223
Score 489
Posts 105
Score 318
Posts 76
Score 305
Posts 78
Score 154
Posts 23

Top posts (589) All Questions Answers | Votes Newest

View all questions and answers

Badges (153)

Gold

5

Rarest

Silver

46

Rarest

Bronze

102

Rarest