top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S3-SA4-0469

What is the Sieve of Eratosthenes?

Grade Level:

Class 6

AI/ML, Data Science, Physics, Economics, Cryptography, Computer Science, Engineering

Definition
What is it?

The Sieve of Eratosthenes is a clever and ancient method to find all prime numbers up to any given limit. It works by systematically removing (or 'sieving out') composite numbers, leaving only prime numbers behind.

Simple Example
Quick Example

Imagine you have a list of students from roll number 1 to 20. You want to find out which roll numbers are 'prime' (meaning they only have 1 and themselves as factors). Using this method, you'd start by eliminating multiples of 2, then multiples of 3, and so on, until only the 'prime' roll numbers are left.

Worked Example
Step-by-Step

Let's find all prime numbers up to 30 using the Sieve of Eratosthenes.

1. Write down all numbers from 1 to 30: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30.
---
2. Cross out 1, as it is not a prime number.
---
3. Circle 2 (it's the first prime). Now, cross out all multiples of 2 (except 2 itself): 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30.
---
4. Circle the next uncrossed number, which is 3 (it's prime). Now, cross out all multiples of 3 (except 3 itself): 6 (already crossed), 9, 12 (already crossed), 15, 18 (already crossed), 21, 24 (already crossed), 27, 30 (already crossed).
---
5. The next uncrossed number is 5 (it's prime). Circle 5. Now, cross out all multiples of 5 (except 5 itself): 10 (already crossed), 15 (already crossed), 20 (already crossed), 25, 30 (already crossed).
---
6. The next uncrossed number is 7 (it's prime). Circle 7. Now, cross out all multiples of 7 (except 7 itself): 14 (already crossed), 21 (already crossed), 28 (already crossed).
---
7. We stop here because the next prime number is 11, and 11 x 11 = 121, which is greater than 30. Any composite number less than or equal to 30 would have already been crossed out by now.
---
8. The numbers that are left (circled and not crossed out) are the prime numbers up to 30.

Answer: The prime numbers up to 30 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29.

Why It Matters

This ancient method is super important even today! It helps computer scientists write efficient programs to find prime numbers, which are crucial for keeping your online chats secure (cryptography) and for things like making sure your mobile payments (like UPI) are safe. It's a foundational idea in computer science and data security.

Common Mistakes

MISTAKE: Crossing out the prime number itself when finding its multiples. For example, crossing out 2 when finding multiples of 2. | CORRECTION: Always circle the prime number and only cross out its multiples, not the prime number itself.

MISTAKE: Forgetting to cross out 1. | CORRECTION: Remember that 1 is neither a prime nor a composite number, so it should be crossed out at the very beginning.

MISTAKE: Stopping the process too early or continuing unnecessarily. | CORRECTION: You only need to check for prime factors up to the square root of your limit. For example, for numbers up to 100, you only need to sieve with primes up to 10 (since 10*10 = 100).

Practice Questions
Try It Yourself

QUESTION: List the first 5 prime numbers found using the Sieve of Eratosthenes. | ANSWER: 2, 3, 5, 7, 11

QUESTION: Using the Sieve of Eratosthenes, find all prime numbers between 30 and 50. | ANSWER: 31, 37, 41, 43, 47

QUESTION: A class has students with roll numbers from 1 to 60. If you use the Sieve of Eratosthenes to find 'prime' roll numbers, which is the largest prime number you would circle before crossing out its multiples? | ANSWER: 7 (because the next prime is 11, and 11 x 11 = 121, which is greater than 60. So, all multiples of primes up to 7 would have already crossed out composite numbers up to 60).

MCQ
Quick Quiz

Which of the following numbers would be the first to be crossed out when applying the Sieve of Eratosthenes to numbers from 1 to 20?

1

2

4

6

The Correct Answer Is:

A

1 is neither prime nor composite, so it is the first number to be crossed out. 2 is the first prime number, and 4 and 6 are multiples of 2, crossed out later.

Real World Connection
In the Real World

When you use secure apps like WhatsApp or make online payments with UPI, your data is encrypted using very large prime numbers. The Sieve of Eratosthenes, while simple, is a basic idea behind how computers efficiently find and use these special numbers to keep your personal information safe from hackers. It's like a foundational recipe for online security!

Key Vocabulary
Key Terms

PRIME NUMBER: A whole number greater than 1 that has exactly two factors: 1 and itself. | COMPOSITE NUMBER: A whole number greater than 1 that has more than two factors. | MULTIPLE: The result of multiplying a number by an integer. | SIEVE: A tool with small holes used to separate wanted elements from unwanted ones.

What's Next
What to Learn Next

Great job learning about the Sieve of Eratosthenes! Next, you can explore 'Prime Factorization'. Understanding prime numbers is key to breaking down any number into its prime building blocks, which is super useful in many areas of mathematics.

bottom of page