130
reputation
5

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

1
answer
0
questions
~236
people reached
  • Köln, Deutschland
  • Member for 1 year
  • 1 profile view
  • Last seen Jul 25 at 11:25
This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
5
bronze badges

Top tags (4)

Score 3
Posts 1
Posts % 100
Score 3
Posts 1
Score 3
Posts 1
Score 3
Posts 1

Top posts (1)