🔢 Prime Number Sieve
Watch the Sieve of Eratosthenes eliminate composite numbers one by one — until only the primes are left glowing!
How the Sieve Works
Start with all numbers 2–100. The first number (2) is prime — circle it, then cross out all its multiples (4, 6, 8...). Move to 3 — prime! Cross out 6, 9, 12... Keep going. Any number not yet crossed out is prime!
What Makes a Number Prime?
A prime number has exactly two factors: 1 and itself. Examples: 2, 3, 5, 7, 11, 13... A composite number has more than two factors. The number 1 is neither prime nor composite.
🔍 Prime Checker
Is it prime? Type any whole number up to 1,000,000,000,000,000 (one quadrillion) to see its prime factors.
How to Use the Sieve
The grid shows the numbers 1 to 100. Below the sieve, the Prime Checker tests any whole number up to 1,000,000,000,000,000 and shows its prime factors and the nearest primes. Press Start Sieve to run it automatically (set the speed with the slider first), or press Step to move one action at a time. Each round finds the next number that hasn't been crossed out, marks it prime, and then crosses out its multiples one by one. Primes collect in the "Primes Found So Far" list. Tap any number to see its factors. Reset starts over.
Worked Example: The First Four Rounds
- 2 is the first number not crossed out, so it is prime. Cross out 4, 6, 8 ... 100. That's 49 numbers gone in a single round.
- 3 is next. Cross out its multiples that are still standing: 9, 15, 21, 27 ... (6, 12 and 18 were already gone).
- 5 crosses out 25, 35, 55, 65, 85 and 95. The rest were already crossed out by 2 or 3.
- 7 crosses out 49, 77 and 91. Students are often surprised that 91 = 7 × 13 is not prime.
- From 11 on, every number left is prime. The sieve keeps going so you can see that, and ends with 25 primes.
Why It Works
Britannica describes the method simply: strike out 1, then every second number after 2, every third after 3, and in general every nth number after n; the numbers that remain are prime. A composite number always has a smaller prime factor, so it gets crossed out when that prime's turn comes. A prime has no smaller factor except 1, so nothing ever crosses it out.
The method is named for Eratosthenes of Cyrene, a Greek scholar of the 200s BCE.
Patterns to Notice
- 2 is the only even prime. Every other even number is a multiple of 2.
- After 2 and 5, every prime ends in 1, 3, 7 or 9.
- Primes thin out as numbers grow: 4 primes between 1 and 10, but only 1 between 90 and 100 (97).
- Twin primes, pairs that differ by 2, keep appearing: 3 and 5, 11 and 13, 17 and 19, 41 and 43, 71 and 73.
- Tap a crossed-out number to find its smallest prime factor, which is the prime that crossed it out.
Common Misconceptions
- "All odd numbers are prime." 9, 15, 21, 25, 27 and 91 are odd and composite.
- "1 is prime." It has only one factor.
- "Prime means it can't be divided." Every number can be divided; a prime just has no whole-number factors besides 1 and itself.
- "Big numbers are probably not prime." 97 is prime. Size alone doesn't decide it.
Activities
- Print a 1-100 chart and color one color per prime's multiples (2s red, 3s blue, 5s green, 7s yellow), then compare with the tool.
- Find the prime factorization of 60 using primes from the list (2 × 2 × 3 × 5), then check GCFs and LCMs in the GCF and LCM tool.
- Goldbach challenge: write even numbers from 4 to 50 as the sum of two primes (10 = 3 + 7 = 5 + 5). Nobody has ever found an even number greater than 2 that fails, but no one has proved it always works either.
Standards
- 4.OA.B.4: Find all factor pairs for a whole number in the range 1-100. Determine whether a given whole number in the range 1-100 is prime or composite.
- 6.NS.B.4: Find the greatest common factor of two whole numbers less than or equal to 100 and the least common multiple of two whole numbers less than or equal to 12.
Prime Sieve FAQ
How many primes are there up to 100?
25: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97. The sieve ends by counting them for you.
Why is 1 not prime?
A prime has exactly two different factors, 1 and itself. The number 1 has only one factor, so it is neither prime nor composite. It starts out grayed in the grid for that reason.
Why does nothing get crossed out after 7?
Every composite number up to 100 has a prime factor of 10 or less (because 10 × 10 = 100). Multiples of 11, 13 and bigger primes that are 100 or less were already crossed out by 2, 3, 5 or 7. Watch the sieve: from 11 onward, each prime is found but crosses out nothing new.
Can I see the factors of a number?
Yes. Tap any number in the grid and the status line lists all its factors and says whether it is prime or composite.
Who was Eratosthenes?
A Greek scholar from Cyrene (in today's Libya) who lived about 276 to 194 BCE and worked in Alexandria, Egypt. Britannica notes he also made the first measurement of Earth's size for which any details are known.
Sources
- Britannica: Sieve of Eratosthenes
- Common Core State Standards: Grade 4 Operations and Algebraic Thinking
- Common Core State Standards: Grade 6 The Number System
Last reviewed: November 2026 · CCSS 4.OA.B.4, 6.NS.B.4
📖 Word Help on This Page
Look up any word from this page in our kid-friendly dictionary:
Explore more: Word Tools Hub · Word Safari