It is a well-known result that the sum of 1/n1/n over integers nNn \in \mathbb{N} diverges, as one can write:

1+12+13+14+15+16+17+18+19+110+ 1+121/2+14+141/2+18+18+18+181/2+116+116+1/2+= \begin{align*} &1+ \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \frac{1}{5} + \frac{1}{6} + \frac{1}{7} + \frac{1}{8} + \frac{1}{9} + \frac{1}{10} + \cdots \\ \geqslant \ &1+ \underbrace{\frac{1}{2}}_{1/2} + \underbrace{\frac{1}{\mathbf{4}} + \frac{1}{4}}_{1/2} + \underbrace{\frac{1}{\mathbf{8}} + \frac{1}{\mathbf{8}} + \frac{1}{\mathbf{8}} + \frac{1}{8}}_{1/2} + \underbrace{\frac{1}{\mathbf{16}} + \frac{1}{16} + \cdots}_{1/2} + \cdots = \infty \end{align*}

which is at least one plus infinitely many halves, and therefore infinite. It is less well-known that the same series but with only prime denominators also diverges; that is:

12+13+15+17+111+113+=. \frac{1}{2} + \frac{1}{3} + \frac{1}{5} + \frac{1}{7} + \frac{1}{11} + \frac{1}{13} + \cdots = \infty.

Here, I prove this, and end with a surprising fact about the speed of this divergence.

Part 1: Using the FTA

Consider the infinite product

p prime(1+p1+p2+p3+). \prod_{p \text{ prime}} (1 + p^{-1} + p^{-2} + p^{-3} + \cdots).

When we expand it out, each term in the expansion is the product of pkpp^{k_p} for each prime pp. By the Fundamental Theorem of Arithmetic, every integer nn can be represented in this form in precisely one way. So expanding this out, we have:

AN=p prime N(1+p1+p2+p3+)=nPN1nn=1N1n A_N = \prod_{p \text{ prime } \leqslant N} (1 + p^{-1} + p^{-2} + p^{-3} + \cdots) = \sum_{n \in P_N} \frac{1}{n} \geqslant \sum_{n = 1}^N \frac{1}{n}

where PNP_N is the set of integers nn whose prime factors are all at most NN, which in particular includes every integer up to NN. Taking the limit as NN \to \infty on both sides shows that ANA_N \to \infty.

Part 2: A Smaller Product

Now, we want to show that a similar product, with each factor being truncated after two terms rather than involving the whole series, also diverges:

BN=p prime N(1+1/p). B_N = \prod_{p \text{ prime } \leqslant N} (1 + 1/p) \to \infty.

We can do this using the divergence of the above series: we compute the ratio of each factor. In particular, for each pp, consider:

1+1/p+1/p2+1/p3+1+1/p=1+1/p2+1/p4+1/p6+=111/p2. \frac{1 + 1/p + 1/p^2 + 1/p^3 + \cdots}{1 + 1/p} = 1 + 1/p^2 + 1/p^4 + 1/p^6 + \cdots = \frac{1}{1-1/p^2}.

using regular division for the first equality, and the geometric series formula for the second. So the truncated partial products have the following ratio:

ANBN=[p prime N(1+1/p+1/p2+)]÷[p prime N(1+1/p)]=p prime N111/p2. \frac{A_N}{B_N} = \left[ \prod_{p \text{ prime } \leqslant N} (1 + 1/p + 1/p^2 + \cdots) \right] \div \left[ \prod_{p \text{ prime } \leqslant N} (1 + 1/p) \right] = \prod_{p \text{ prime } \leqslant N} \frac{1}{1-1/p^2}.

Now, we use the bound 1/(1x)e2x1/(1-x) \leqslant e^{2x} for 0x120 \leqslant x \leqslant \frac{1}{2}. This yields:

p prime111/p2p primee2/p2=exp(2p prime1/p2)exp(2n=11/n2)=exp(π2/3). \prod_{p \text{ prime}} \frac{1}{1-1/p^2} \leqslant \prod_{p \text{ prime}} e^{2/p^2} = \exp\left(2\sum_{p \text{ prime}} 1/p^2\right) \leqslant \exp\left(2\sum_{n=1}^{\infty} 1/n^2\right) = \exp(\pi^2/3).

This is finite (indeed, it is approximately 26.8426.84). So the ratio between ANA_N and BNB_N is bounded above by some finite constant uniformly in NN, and so BNB_N must also diverge.

Part 3: Logarithmic Bound

Now, we are almost there! We can take the logarithm of this divergent product, and apply the result that log(1+1/p)1/p\log(1 + 1/p) \leqslant 1/p:

log(BN)=log(p prime N(1+1/p))=p prime Nlog(1+1/p)p prime N1/p=SN. \log(B_N) = \log \left( \prod_{p \text{ prime } \leqslant N} (1 + 1/p) \right) = \sum_{p \text{ prime } \leqslant N} \log(1 + 1/p) \leqslant \sum_{p \text{ prime } \leqslant N} 1/p = S_N.

But BNB_N \to \infty, and therefore log(BN)\log(B_N) \to \infty, which means SNS_N \to \infty as desired. \square


Now, what about real life? We know that this sum of prime reciprocals diverges to infinity, so it gets arbitrarily large, crossing any finite number you can think of. But in fact, the sum of 1/p1/p over known primes pp is… less than 4.

This beautiful result follows from the second theorem of Franz Mertens, which states that:

limn(p prime n1/ploglogn)=M0.261497. \lim_{n \to \infty} \left( \sum_{p \text{ prime } \leqslant n} 1/p - \log \log n \right) = M \approx 0.261497.

In particular, the deviation from this limit is at most

δn=4log(n+1)+2nlogn. \delta_n = \frac{4}{\log(n+1)} + \frac{2}{n \log n}.

Now, choose N=1015N = 10^{15}, and generously assume we know every prime up to this level. We see that:

p prime 10151/p=loglog1015+M+4log(1015+1)+21015log10153.542+0.262+0.116+0.001=3.921 \begin{align*} \sum_{p \text{ prime } \leqslant 10^{15}} 1/p &= \log \log 10^{15} + M + \frac{4}{\log(10^{15}+1)} + \frac{2}{10^{15} \log 10^{15}} \\ &\leqslant 3.542 + 0.262 + 0.116 + 0.001 = 3.921 \end{align*}

Now, what about the known primes above this? Well,

p known prime >10151/pp known prime >10151/1015number of known primes above this threshold×1/1015. \sum_{p \text{ known prime } > 10^{15}} 1/p \leqslant \sum_{p \text{ known prime } > 10^{15}} 1/10^{15} \leqslant \text{number of known primes above this threshold} \times 1/10^{15}.

We certainly know far far fewer than a trillion of these, so let us use this bound, yielding a contribution of only 1012/1015=0.00110^{12}/10^{15} = 0.001.

The total contribution, using the extremely generous assumption that we know every prime up to 101510^{15} and a trillion beyond, is thus at most 3.9223.922. Summing up just the first fifty terms yields

12+13+15+17++1229=1.9670, \frac{1}{2} + \frac{1}{3} + \frac{1}{5} + \frac{1}{7} + \cdots + \frac{1}{229} = 1.9670,

which is already most of the way there!