Sieve of Eratostenes


/ Published in: Python
Save to your folder(s)

An (probably inefficient) implementation of the Sieve of Eratostenes. The function returns a list containing all the prime numbers between 0 and the number passed to it.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.