Numbers which are sums of all smaller primes

number theoryprime numbers

I have to find all numbers which are the sum of all smaller primes.

I think, that only number which is sum of all smaller primes is $5$ (all smaller primes than $5$ are only $2$ and $3$, and $2+3=5$).

If I will try to find such number by adding consecutive primes I will soon get too big numbers:

$2+3+5=10$, but $7$ is a prime smaller than $10$, so $10$ isn't a solution.
Similarly $2+3+5+7=17$, but there are $11$ and $13$ which are primes smaller than $17$, and so on, so it's looking as sum of consecutive primes is getting bigger too fast. On the other hand, I'm aware of the fact that there are "holes" without primes in any size (there are n consecutive natural numbers somewhere without primes, for any n), but I think it will not change anything.

So I conjecture, that $5$ is only solution, but unfortunately I have no idea how to prove it mathematically.

Best Answer

Let $\Psi(n)$ denote the sum of the primes less than $n$. We contend that $n>5$ implies $\Psi(n)>n$. That is clearly stronger than the desired result.

It is easy to confirm that this is true for the first few $n$. We then proceed by induction.

Suppose $N$ is the least counterexample. Then, in particular, the claim must be true for $\Big \lfloor \frac N2\Big \rfloor$ (we may assume that we have checked far enough so that $\frac N2>6$). But then $$\Psi\left(\Big \lfloor \frac N2\Big \rfloor\right)>\frac N2$$

By Bertrand there is a prime $p$ between $\frac N2$ and $N$ so that we have $$\Psi(N)≥\Psi\left(\Big \lfloor \frac N2\Big \rfloor\right)+p>N$$ and we are done.

Related Question