Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
24,685
reputation
5
35
87

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

510
answers
8
questions
~589k
people reached
  • Zürich, Switzerland
  • Member for 2 years, 11 months
  • 1,463 profile views
  • Last seen 14 mins ago

Top Tags (223)

Score 2,001
Posts 514
Posts % 99
Score 768
Posts 189
Score 425
Posts 93
Score 291
Posts 75
Score 211
Posts 65
Score 136
Posts 26

Top Posts (518) All Questions Answers | Votes Newest

View all questions and answers

Badges (127)

Gold

5

Rarest

Silver

35

Rarest

Bronze

87

Rarest