interprime

Given two consecutive odd primes, the $i$th prime $p_{i}$ and the next one, $p_{i+1}$, an $n$ is the arithmetic mean of the two:

 $n=\frac{p_{i}+p_{i+1}}{2}$

Thus, $n-p_{i}=p_{i+1}-n$, so alternatively

 $n=p_{i}+\frac{p_{i+1}-p_{i}}{2}=p_{i+1}-\frac{p_{i+1}-p_{i}}{2}.$

For example, given the 269th and 270th primes, 1723 and 1733, the interprime is 1728, and indeed $1728-1723=1733-1728=5$. Interprimes themselves are of course always composite, though not always even. An interprime between a twin prime will always be even, while an interprime between the second (ending in 3 in base 10) and third (ending in 7 in base 10) member of a prime quadruplet will always be odd and be divisible by 5.

The first few interprimes are 4, 6, 9, 12, 15, 18, 21, 26, 30, 34, 39, 42, 45, 50, 56, 60, 64, 69, 72, 76, 81, 86, 93, 99, etc., listed in A024675 of Sloane’s OEIS.

Title interprime Interprime 2013-03-22 18:08:25 2013-03-22 18:08:25 PrimeFan (13766) PrimeFan (13766) 5 PrimeFan (13766) Definition msc 11A51 MinimalAndMaximalNumber