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
21,852
reputation
5
31
83

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

449
answers
8
questions
~473k
people reached
  • Zürich, Switzerland
  • Member for 2 years, 8 months
  • 1,246 profile views
  • Last seen 2 hours ago

Top Tags (215)

Score 1,772
Posts 452
Posts % 99
Score 668
Posts 160
Score 392
Posts 79
Score 285
Posts 71
Score 170
Posts 54
Score 132
Posts 25

Top Posts (457) All Questions Answers | Votes Newest

View all questions and answers

Badges (119)

Gold

5

Rarest

Silver

31

Rarest

Bronze

83

Rarest