Sieve of Eratosthenes


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

Returns an array of all the prime numbers up to (n) using an implementation of the Sieve of Eratosthenes.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.