‹ Class 6 · Ch 5
Prime Time · Principle 6 of 17

Sieve out the primes

Circle, cross out the multiples, repeat.

Stuck? Ask Guru

NCERT: 5.2 Prime Numbers

Think

A 2200-year-old trick

Checking the factors of every number from 1 to 100 takes a long time. Eratosthenes, a Greek mathematician, found a faster way.

We know 2 is a prime. Which numbers can surely not be prime?

What this lesson covers

The idea

To list primes, cross out 1, then repeatedly circle the next uncrossed number and cross out all its later multiples; the circled numbers are prime and the crossed-out ones, other than 1, are composite.

A 2200-year-old trick

Checking the factors of every number from 1 to 100 takes a long time. Eratosthenes, a Greek mathematician, found a faster way.

We know 2 is a prime. Which numbers can surely not be prime?

  • 3, 5, 7, 9, …. These are not multiples of 2. Some of them are primes (3, 5, 7).
  • 4, 6, 8, 10, … (the other multiples of 2) — correct. Yes! Each of them has 2 as a factor, besides 1 and itself. So it has more than two factors: composite.
  • Only 4. 4 = 2 × 2, yes. But 6, 8, 10, … also have 2 as a factor.

Run the sieve

Cross out 1. Then, again and again: tap the first number that is not crossed out. It gets circled, and all its later multiples get crossed out.

The Sieve of Eratosthenes

Cross out 1. Then keep circling the next uncrossed number and crossing out all its later multiples. The circled numbers are primes. The crossed-out numbers, other than 1, are composite.

Why does it work? A crossed-out number is a multiple of a smaller circled number, so it has an extra factor: composite. A circled number was never a multiple of any smaller number (other than 1): only two factors, prime.

Notes

Sieve of Eratosthenes: cross out 1, then keep circling the next uncrossed number and crossing out all its later multiples. Circled numbers are prime; crossed-out ones, other than 1, are composite.

Check yourself

You circled 2 and crossed out its multiples. Which number do you circle next?

Is 91 a prime?

How many primes are there from 1 to 20?

Answer: 8

2, 3, 5, 7, 11, 13, 17, 19. That's 8 primes.

A number other than 1 got crossed out in the sieve. What kind of number is it?

  • 3 — correct. Yes! 3 is the first number that is not crossed out.
  • 4. 4 = 2 × 2 is already crossed out as a multiple of 2.
  • 9. Circle the first number that is not crossed out. 3 comes before 9.
  • Yes, it looks like one. Check the sieve: 91 is crossed out. 91 = 7 × 13.
  • No, 91 = 7 × 13 — correct. Right! 91 gets crossed out with the multiples of 7. It has factors 1, 7, 13, 91: composite.
  • Prime. Primes are the circled numbers. Crossed-out numbers are multiples of a smaller number.
  • Composite — correct. Yes! It was crossed out as a multiple of a smaller number, so it has more than two factors.
  • It could be either. No: being a multiple of a smaller number (bigger than 1) means it has an extra factor. Always composite.