Sieve of Eratosthenes
Finds every prime up to a number without dividing anything. Each prime in turn crosses out its multiples, so whatever is never crossed out has no factor but 1 and itself, and is a prime.
- crossings out
- 0
step 1 of 1
Examples
Finds every prime up to a number without dividing anything. Each prime in turn crosses out its multiples, so whatever is never crossed out has no factor but 1 and itself, and is a prime.
step 1 of 1
Examples