Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I want to find the last deleted number in Sieve of Eratosthenes when applied on numbers below 1000. How can I find it?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

HINT: If $n<1000$ is composite, it will be removed when its smallest prime factor is processed. $31<\sqrt{1000}<32$, so the smallest prime factor or $n$ can be at most $31$.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.