Watch Encyclopedia

Finding Prime Numbers

A prime is a number that only 1 and itself divide. Here is the oldest way to find them all.

What you are seeing

Start from 2. Keep it, then cross out all its multiples. Move to the next number left standing and do it again.

Each color shows which prime crossed a number out first. Point at any number to see its prime factors.

Try this

  • Press One step and follow along by hand.
  • Run it on 1 to 900.
  • Look for twin primes: pairs just two apart, such as 41 and 43.

Numbers

Primes up to 100
25
Primes up to 900
154
Method credited to
Eratosthenes, about 240 BCE

Keep watching

More to explore