History of Mathematics
in India IIT Gandhinagar, home

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 i+j+2iji + j + 2ij from the integers. Specifically, for i,j≥1i, j \geq 1, mark every integer of the form i+j+2iji + j + 2ij. The remaining unmarked numbers kk, when doubled and incremented, give us odd primes 2k+12k+1.

Let F(N)F(N) be the number of integers in {1,2,…,N}\{1, 2, \ldots, N\} that are never marked, that is, cannot be written as i+j+2iji + j + 2ij for any i,j≥1i, j \geq 1. Compute F(106)F(10^6).

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.