Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Crandall and Pomerance "Prime Numbers: A Computational Perspective" Second Ed., pp. 121 just before Eq. (3.1) it says: "The number of steps in the sieve of Eratosthenes is proportional to $\sum_{p\leq N} N/p$, where $p$ runs over primes."

However, in the sieve of Eratosthenes one only sieves with primes $p \leq \sqrt{N}$, so I would say the sum should be $\sum_{p\leq \sqrt{N}} N/p$. Now, except for a constant term, the sum turns out to be the same in the two cases, so for the purposes of the complexity estimate in the book, it makes no difference. Nevertheless, I'd say this constitutes a typo.

Could someone please verify this?

share|cite|improve this question
up vote 2 down vote accepted

Carl Pomerance verified it and thanked me.

share|cite|improve this answer

Your Answer


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.