The Sieve of Eratosthenes

2345678910
11121314151617181920
21222324252627282930
31323334353637383940
41424344454647484950
51525354555657585960
61626364656667686970
71727374757677787980
81828384858687888990
919293949596979899100

ex01

The Sieve of Eratosthenes is a method for finding all the prime numbers starting with 2. It was created by Eratosthenes, a Greek mathematician who served as the head librarian at the famed Library of Alexandria.

This webpage takes the reader through the process of making a sieve to find the prime numbers between 1 and 100.

To start with, we list all the numbers that we want to look through for primes. In this case we are listing the numbers 1 through 100. This means we will find all primes up through 100. Since the number 1 is a special case, we leave the position for 1 blank.

cont01