Stack Exchange Network

Stack Exchange network consists of 175 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
28,147
reputation
5
45
100

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

570
answers
8
questions
~717k
people reached
  • Zürich, Switzerland
  • Member for 3 years, 3 months
  • 1,727 profile views
  • Last seen 51 mins ago

Top tags (230)

Score 2,308
Posts 573
Posts % 99
Score 910
Posts 216
Score 475
Posts 102
Score 317
Posts 76
Score 309
Posts 79
Score 152
Posts 22

Top posts (578) All Questions Answers | Votes Newest

View all questions and answers

Badges (150)

Gold

5

Rarest

Silver

45

Rarest

Bronze

100

Rarest