Exercise 552Number theory › PrimesHigh schoolAdded 3 Nov 2026
The sieve of Eratosthenes
#sieve#Eratosthenes#primes
Statement
Use the sieve of Eratosthenes to list all primes less than .
Hint
Cross out multiples of each prime starting from , up to .
Show solutionHide solution
Solution
Start. List .
Cross out multiples of 2 (except ): .
Cross out multiples of 3 (except ): (some already removed).
Cross out multiples of 5 (except ): .
Remaining primes. .
Conclusion. Ten primes less than .