In mathematics, the Sieve of Eratosthenes is a simple, ancient pricess for finding all prime numbers up to a specified number. It was created by Eratosthenes, an ancient Greek mathematician. However, none of his mathematical works survived-the sieve was described and attributed to Eratosthenes in the Introduction to Arithmetic by Nicomachus

How it works

The following table deomstrates how to use the sieve of Eratosthenes to find all prime numbers by elimination, in this case up to 240.

Sieve of Eratosthenes