Project Brahmagupta · problem 19
Sieve of Sundaram
In 1934, S. P. Sundaram introduced a method to generate all odd primes by removing numbers of the form from the integers. Specifically, for , mark every integer of the form . The remaining unmarked numbers , when doubled and incremented, give us odd primes .
Let be the number of integers in that are never marked, that is, cannot be written as for any . Compute .
Try it
Check an answer
Enter a number, or a decimal where the problem asks for one. Only a hash of the answer is kept on this page.
Problem 19 of Project Brahmagupta, published under the Creative Commons Attribution 4.0 licence. No solutions are published.