If you are looking for commonly-asked travel advice and resources due to the COVID-19 crisis, please check this FAQ for an up-to-date list.
141
reputation
4

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

0
answers
1
question
~174
people reached
  • Zürich, Switzerland
  • Member for 2 years, 10 months
  • 0 profile views
  • Last seen 2 days ago

Top tags (3)

Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (1)

Badges (4)

Gold

Silver

Bronze

4

Rarest