Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

The Sieve of Eratosthenes is a classic method for finding all prime numbers up to a chosen limit. It matters because prime numbers are the building blocks of whole-number multiplication, and many math topics depend on recognizing them quickly. Instead of testing every number one by one, the sieve removes numbers that are known to be composite.

This makes it an efficient and visual way to see the structure of the integers.

Understanding Math: The Sieve of Eratosthenes

The method works because every composite number has a smaller factor. If a number can be made by multiplying two whole numbers, at least one of those factors is no larger than the square root of the number. For example, ninety one equals seven times thirteen.

Seven is below the square root of ninety one, so the sieve would remove ninety one when it reaches seven. This is the reason the process can stop early.

After all relevant small primes have been handled, any number still visible cannot have a hidden pair of factors. It must be prime.

A careful version of the sieve begins crossing out at the square of the current prime. Earlier multiples have already been dealt with by smaller primes. Consider the prime five.

Its multiples ten, fifteen, and twenty were removed when working with two or three. The first multiple that five needs to remove is twenty five. This small shortcut matters more as the list gets larger.

It avoids repeated work and makes the pattern easier to follow. Students often make mistakes by crossing out the prime itself. The first number crossed out must be a larger multiple, never the prime being used.

The sieve reveals patterns that are hard to notice when numbers are tested separately. Every number after two that is even disappears immediately. After removing multiples of three, the remaining numbers form gaps with a repeating feel.

These patterns do not replace proof, since some numbers that survive early rounds are still composite. For instance, forty nine is odd and is not divisible by three or five, but it is seven times seven.

The sieve shows why checking divisibility by only two or three is not enough. It teaches students to use a complete method rather than rely on a pattern that happens to work for a few examples.

Primes appear whenever whole numbers are broken into their basic multiplication pieces. This is used in simplifying fractions, finding common factors, finding least common multiples, and solving divisibility problems. Much later, very large primes become important in digital security systems.

A computer can create a sieve quickly for a fixed range, usually by storing whether each number has been crossed out. For hand work, use a clear table, circle a number only after confirming it has not been removed, and mark multiples in regular steps.

Keep the limit visible throughout. Numbers beyond the limit do not matter, even if a counting pattern would continue.

Key Facts

  • A prime number has exactly two positive factors: 1 and itself.
  • A composite number has more than two positive factors.
  • Start the sieve by listing the integers from 2 to n, since 1 is not prime.
  • When a prime p is found, cross out its multiples: 2p, 3p, 4p, and so on.
  • You only need to test primes p with p <= sqrt(n).
  • For n = 100, checking primes up to sqrt(100) = 10 means using 2, 3, 5, and 7.

Vocabulary

Prime number
A prime number is a whole number greater than 1 with exactly two positive factors, 1 and itself.
Composite number
A composite number is a whole number greater than 1 that has more than two positive factors.
Multiple
A multiple of a number is the result of multiplying that number by an integer.
Factor
A factor of a number is a whole number that divides it evenly with no remainder.
Square root
The square root of n is a number that gives n when multiplied by itself.

Common Mistakes to Avoid

  • Treating 1 as prime is wrong because 1 has only one positive factor, not exactly two.
  • Crossing out the prime number itself is wrong because the sieve removes multiples of a prime after the prime, such as 2p, 3p, and 4p.
  • Checking every number up to n is unnecessary because any composite number up to n must have at least one factor less than or equal to sqrt(n).
  • Starting each crossing-out step at 2p instead of p^2 wastes work because smaller multiples of p were already crossed out by smaller prime factors.

Practice Questions

  1. 1 Use the Sieve of Eratosthenes to list all prime numbers from 1 to 50.
  2. 2 Using the sieve up to 100, which numbers are crossed out when you use the prime 7 and start at 7^2?
  3. 3 Explain why, when sieving up to 100, it is enough to cross out multiples of 2, 3, 5, and 7.