We append to and cross off all multiples of to obtain the new list
Next we append to , obtaining , and cross off the multiples of , to obtain Because , we append to and find that the primes less than are
sage: eratosthenes(50) [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]
William 2007-06-01