Sieve of Eratosthenes
Summary
The sieve of Eratosthenes is an algorithm that finds all the prime numbers up to a given bound . It writes the integers from to . It takes the smallest number that is not crossed out, which is a prime , and crosses out the multiples up to . It repeats this step while . The numbers that are not crossed out at the end are the primes up to .
Remarks
It is enough to start at , because a smaller multiple of has a smaller prime factor, and an earlier step crossed it out. The algorithm needs about operations. The idea of the sieve is the basis of sieve methods in analytic number theory.
Explanations
L1 human
For , cross out the multiples of from , then the multiples of from , then the multiples of from . Then , so you stop. The numbers left are .
What this node needs for W2
- edge defines in: at least one definition (0 of 1)
- edge instance_of in: at least two examples (0 of 2)
- edge not_instance_of in: at least one non-example (0 of 1)
- edge specializes both: the more general notions and the special cases (0 of 1)
The writing levels say how complete the text of a node is. They do not measure its truth.
Sources
What links here
No node links to this node yet.