Question DSA-MATH-0060
MediumWhy is the sieve of Eratosthenes allowed to start crossing out multiples of p from p²?
- A.
Multiples below p² are prime
- B.
p² is always prime
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Math and Number Theory question
Why is the sieve of Eratosthenes allowed to start crossing out multiples of p from p²?
Multiples below p² are prime
p² is always prime
Sign up free to see the answer and a step-by-step explanation.
Smaller multiples of p have a smaller prime factor and were already crossed out
It is faster to start at 2p