Next Article in Journal
Novel Analytical Methods for and Qualitative Analysis of the Generalized Water Wave Equation
Previous Article in Journal
Positive Hankel Matrices, Eigenvalues and Total Positivity
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Arithmetic Average of the First n Primes

School of Mathematics and Statistics, Victoria University of Wellington, P.O. Box 600, Wellington 6140, New Zealand
Mathematics 2025, 13(14), 2279; https://doi.org/10.3390/math13142279
Submission received: 14 June 2025 / Revised: 9 July 2025 / Accepted: 14 July 2025 / Published: 15 July 2025

Abstract

The arithmetic average of the first n primes, p ¯ n = 1 n i = 1 n p i , exhibits very many interesting and subtle properties. Since the transformation from p n p ¯ n is extremely easy to invert, p n = n p ¯ n ( n 1 ) p ¯ n 1 , it is clear that these two sequences p n p ¯ n must ultimately carry exactly the same information. But the averaged sequence p ¯ n , while very closely correlated with the primes, ( p ¯ n 1 2 p n ), is much “smoother” and much better behaved. Using extensions of various standard results, I shall demonstrate that the prime-averaged sequence p ¯ n satisfies prime-averaged analogues of the Cramer, Andrica, Legendre, Oppermann, Brocard, Fourges, Firoozbakht, Nicholson, and Farhadian conjectures. (So these prime-averaged analogues are not conjectures; they are theorems). The crucial key to enabling this pleasant behaviour is the “smoothing” process inherent in averaging. While the asymptotic behaviour of the two sequences is very closely correlated, the local fluctuations are quite different.

1. Introduction and Background

Consider the average of the first n primes
p ¯ n = 1 n i = 1 n p i .
Explicitly
p ¯ n 2 , 2 1 2 , 3 1 3 , 4 1 4 , 5 3 5 , 6 5 6 , 8 2 7 , 9 5 8 , 11 1 9 , 12 9 10 , for n { 1 , 2 , 3 , } .
Quite a lot is already known about this sequence [1,2,3,4,5,6,7,8,9]. For instance the asymptotic behaviour is known to be (OEIS A034387 [1])
p ¯ n p n 2 n ln n 2 .
More precisely (Dusart [2])
p ¯ n = 1 2 n ln ( n ln n ) 3 n 2 + o ( 1 ) .
Several higher-order terms in the asymptotic expansion are also known [2,3,4,5,6] but are not of direct relevance to the present discussion.
Various other explicit upper and lower bounds are also known (Mandl [7], OEIS A351914 [8], Hassani [3], Dusart [2])
p ¯ n < p n 2 ; ( p n > 19 ; n 9 ) ;
p ¯ n < p n 2 n 14 ; ( n 10 ) ;
p ¯ n > p [ n / 2 ] ; ( n 2 ) .
Herein, I wish to take the discussion in a rather different direction.
Since p ¯ n p n 2 , these two sequences are very closely correlated. Furthermore, since the relation p n p ¯ n is easily invertible to p n = n p ¯ n ( n 1 ) p ¯ n 1 , these two sequences ultimately carry completely identical information. Nevertheless, as discussed below, the two sequences also exhibit profound differences.
Specifically, I shall demonstrate below that the prime-averaged sequence p ¯ n satisfies suitably formulated prime-averaged analogues of the usual Cramer, Andrica, Legendre, Oppermann, Brocard, Fourges, Firoozbakht, Nicholson, and Farhadian conjectures. (So these prime-averaged analogues are not conjectures; they are theorems). The crucial observation enabling this pleasant behaviour is the “smoothing” process inherent in averaging. We shall soon see that the prime-averaged gaps are in a suitable sense extremely small. On the other hand, while the asymptotic behaviour of the two sequences is very tightly correlated, we shall see that the fluctuations are quite different.

2. Standard and Easy Results

In this section I will introduce a few basic tools (Rosser [10], Rosser–Schoenfeld [11]):
p n > n ln n ; ( n 1 ) ;
p n < n ln ( n ln n ) ; ( n 6 ) .
It is sometimes useful to note
ln ( n ln n ) = ln n + ln ln n = ln n 1 + ln ln n ln n ( 1 + e 1 ) ln n .
Consequently
p n < ( 1 + e 1 ) n ln n ; ( n 4 ) .
Lemma 1. 
Still easy (but perhaps somewhat less well known) is the first slightly non-trivial (post Bertrand–Chebyshev) bound on the n-th prime gap:
g n = p n + 1 p n < n ; so that p n + 1 < p n + n ; ( n 1 ) .
Proof. 
Rosser and Schoenfeld [11] give | ϑ ( x ) x | < 1 2 x ln x for x 563 = p 103 . Thence, (checking small values of x by explicit computation), | ϑ ( x ) x | < 1 2 π ( x ) for x 347 = p 69 . But then | ϑ ( p n ) p n | < 1 2 n for n 26 . By evaluating | ϑ ( x ) x | at x = p n + 1 , just below the ( n + 1 ) t h prime, we also see | ϑ ( p n ) p n + 1 | < 1 2 n for n 69 . Thence by the triangle inequality p n + 1 p n < n , certainly for all integers n 69 . Checking lower integers by explicit computation, p n + 1 p n < n for n 1 . ☐
Note that this in turn implies
p n + 1 < p n + n < n [ ln ( n ln n ) + 1 ] ; ( n 5 ) .
For another lower bound on p ¯ n note
p ¯ n > 1 n i = 1 n i ln i = 1 n i = 2 n i ln i .
We now bound this sum by the integral
p ¯ n > 1 n 1 n u ln u d u = n ln n 2 n 4 + 1 4 n = n 2 ln n 1 2 + 1 4 n ,
with this final inequality holding for n 1 .
Finally, we shall also have occasion to use (Dusart [12])
π ( x ) > x ln x 1 ; ( x > 5393 = p 711 ) ,
and (Dusart [12])
π ( x ) < x ln x 139 125 ; ( x > e 139 / 125 ) .

3. Counting the Averaged Primes

Define
π ¯ ( x ) : = # { i : p ¯ i x } .
This counts the averaged-primes p ¯ n . (I emphasize that here we are counting the averaged-primes, not averaging the count of primes. That would instead be something akin to π average ( x ) = 1 π ( x ) i = 1 π ( x ) π ( i ) , a rather different quantity).
  • From p ¯ n < p n 2 we see { i : p ¯ i x } { i : p i 2 x } = { i : p i 2 x } , and so for x 19 we have # { i : p ¯ i x } # { i : p i 2 x } . In terms of the average-prime counting function, this implies
    π ¯ ( x ) π ( 2 x ) ; ( x > 19 = p 8 ) .
    Explicitly checking smaller values of x this saturates the domain of validity.
  • From p ¯ n > p [ n / 2 ] we see { i : p ¯ i x } { i : p [ i / 2 ] x } whence for n 2 (implying x 3 ) we have the following:
    π ¯ ( x ) # { i : p [ i / 2 ] x } 2 # { i : p i x } 2 π ( x ) .
    Explicitly checking smaller values of x this saturates the domain of validity.
π ¯ ( x ) 2 π ( x ) ; ( x 3 = p 2 ) .
Combining, we see that we have reasonably tight upper and lower bounds on the count of averaged primes:
( x > 19 = p 8 ) π ( 2 x ) π ¯ ( x ) 2 π ( x ) ( x 3 = p 2 ) .

4. Bounding the Gaps in the Averaged Primes

First note that
p ¯ n + 1 = i = 1 n + 1 p i n + 1 = i = 1 n p i + p n + 1 n + 1 = n p ¯ n + p n + 1 n + 1 = p ¯ n + p n + 1 p ¯ n n + 1 .
In view of Mandl’s inequality ( p ¯ n < p n / 2 for n 9 , see [7,8]), that last term is definitely positive, and the sequence p ¯ n is monotone increasing. Let us define the gap in the averages as
g ¯ n = p ¯ n + 1 p ¯ n .
While the average primes p ¯ n are monotone increasing, the gaps in the averages g ¯ n have no nice monotonicity properties.
(I emphasise, g ¯ n is the gap in the averages, not the averages of the gaps — that would instead be
( g n ) average = 1 n i = 1 n g i = 1 n i = 1 n ( p i + 1 p i ) = 1 n ( p n + 1 p 1 ) = 1 n ( p n + 1 2 ) ,
a quantity interesting in its own right, but for totally different reasons).
For the gap in the averages we have
g ¯ n = p ¯ n + 1 p ¯ n = p n + 1 p ¯ n n + 1 < n [ ln ( n ln n ) + 1 ] n 2 ln n 1 2 n + 1 ,
with the inequality holding for n 5 . Rearranging
g ¯ n < ln n n n + 1 1 + ln ln n n + 1 ln n 1 2 1 1 2 ln n ,
that is
g ¯ n < ln n 2 n n + 1 1 + 2 ln ln n n + 5 2 ln n , ( n 5 ) .
Within the domain of validity of this inequality, the quantity in braces is monotone decreasing (but always exceeds unity) and, searching for a value of n such that quantity in braces drops below 2, we certainly have g ¯ n < ln n for n 439 . Explicitly checking the smaller integers, one finds
g ¯ n < ln n , ( n 3 ) .
In the other direction
g ¯ n = p n + 1 p ¯ n n + 1 > p n + 2 1 2 p n n + 1 = 1 2 p n + 4 n + 1 > 1 2 n ln n + 4 n + 1 = ln n 2 1 + 4 ln n 1 + 1 n .
Thence, since the quantity in braces always exceeds unity, we see
g ¯ n > ln n 2 , ( n 1 ) .
Overall we have rather good upper and lower bounds
( n 1 ) , ln n 2 < g ¯ n < ln n , ( n 3 ) .
Indeed, from this we see g ¯ n ln n and consequently g ¯ n p ¯ n 2 n . This extremely rapid falloff in the size of the relative gaps in the averaged primes is ultimately the key observation underlying the computations below.
To be more explicit, for n 3 we certainly have
g ¯ n p ¯ n < ln n n 2 ( ln n 1 / 2 ) + 1 / 4 < 2.871142034 n .
By somewhat rearranging and tightening the discussion, from (23) we have
n g ¯ n p ¯ n = n n + 1 p n + 1 p ¯ n 1 < n n + 1 [ n + 1 ] ln ( [ n + 1 ] ln [ n + 1 ] ) n 2 ln n 1 2 + 1 4 1 .
Now this last quantity is less than 2 for n 100 . Thence certainly
g ¯ n p ¯ n < 2 n ; ( n > 100 ) .
Explicitly checking smaller integers we have the stronger result
g ¯ n p ¯ n < 2 n ; ( n 4 ) .
In the other direction, for n 6 we have
g ¯ n p ¯ n > 1 2 ln n 1 2 p n > ln n n ln ( n ln n ) = 1 n ( 1 + ln ln n ln n )
which is bounded below by
1 n ( 1 + e 1 ) > 0.7310585785 n ; ( n 6 ) .
Explicitly checking smaller integers
g ¯ n p ¯ n > 1 n ( 1 + e 1 ) > 0.7310585785 n ; ( n 3 ) .
A slightly tidier summary of these results comes from noting
( n 4 ) 7 10 n < g ¯ n p ¯ n < 2 n ; ( n 4 ) .
We shall re-use these bounds several times in the discussion below.

5. Prime-Average Analogues of Some Standard Conjectures

Given the rather tight bound on the prime-average gaps derived above, it is now in very many cases relatively easy to formulate provable prime-average analogues of various standard conjectures. (Often the only major difficulty lies in designing and formulating a suitable analogue). Below I present a few examples.

5.1. Prime-Average Analogue of Cramer

The ordinary Cramer conjecture is the hypothesis that the ordinary prime gaps g n satisfy g n = O ( [ ln p n ] 2 ) . The prime-average analogue would be g ¯ n = O ( [ ln p ¯ n ] 2 ) . But since p ¯ n = O ( n ln n ) we have ln p ¯ n = O ( ln n ) and O ( [ ln p ¯ n ] 2 ) = O ( [ ln n ] 2 ) . So the prime-average analogue of Cramer would be tantamount to making the claim g ¯ n = O ( [ ln n ] 2 ) . But since we have already proved the very much stronger result that g ¯ n = O ( ln n ) , this is a triviality.

5.2. Prime-Average Analogue of Andrica

The ordinary Andrica conjecture is the hypothesis that the ordinary primes p n satisfy p n + 1 p n < 1 . The prime-average analogue would be that the averaged primes p ¯ n satisfy p ¯ n + 1 p ¯ n < 1 . But this is easily checked to be true and in fact much more can be said.
Using our previous results we compute (for n > 1 )
p ¯ n + 1 p ¯ n = p ¯ n + 1 p ¯ n p ¯ n + 1 + p ¯ n < ln n 2 p ¯ n < ln n 2 n 2 ( ln n 1 2 ) .
That is
p ¯ n + 1 p ¯ n < ln n n 2 1 1 2 ln n 1 / 2 .
But for n > e (implying n 3 ) the quantity in braces lies in the range ( 1 , 2 ) , and so in this range
p ¯ n + 1 p ¯ n < ln n n ; ( n 3 ) .
Explicitly checking n { 1 , 2 } , in fact we see
p ¯ n + 1 p ¯ n < ln n n ; ( n 2 ) .
Note this is asymptotically much stronger than just a constant bound, and we could replace it with a considerably weaker statement with a slightly greater range of validity
p ¯ n + 1 p ¯ n p ¯ 3 p ¯ 2 < 1 4 ; ( n 1 ) .
So the prime-average analogue of Andrica is unassailably true.

5.3. Prime-Average Analogue of Legendre

The ordinary Legendre conjecture is the hypothesis that the ordinary primes p n satisfy π ( [ m + 1 ] 2 ) > π ( m 2 ) for integer m 1 . The most naive prime-average analogue would be that the averaged primes p ¯ n satisfy π ¯ ( [ m + 1 ] 2 ) > π ¯ ( m 2 ) for integer m 1 . But this is easily checked to be true and in fact much more can be said.
Recall
π ( 2 x ) π ¯ ( x ) 2 π ( x ) .
Let π ¯ ( m 2 ) = n , then by definition p ¯ n is the largest prime-average below m 2 , and p ¯ n + 1 is the smallest prime-average above m 2 . But then, using our previous results, for integer n 3 corresponding to m 5 , we have
p ¯ n + 1 = p ¯ n + g ¯ n < m 2 + ln n = m 2 + ln π ¯ ( m 2 ) < m 2 + ln [ 2 π ( m 2 ) ] < m 2 + ln 2 + ln π ( m 2 ) .
Thence, since π ( m 2 ) is certainly (very much) less than m 2 , and ln 2 < 1 , we certainly have the (extremely crude) bound
p ¯ n + 1 < m 2 + ln 2 + ln ( m 2 ) < m 2 + 1 + 2 ln m = ( m + 1 ) 2 2 [ m ln m ] < ( m + 1 ) 2 .
(This crude bound could also be derived directly from the analogue Andrica discussion above). This bound is more than sufficient to prove the prime-average version of Legendre for m 5 , though it is clear that the argument can be very considerably tightened. In particular, it is easy to check that
p ¯ n 2 4 , 6 1 4 , 11 1 9 , 19 1 16 , 31 9 25 , 46 25 36 , 68 32 49 , 92 41 64 for n { 1 , 2 , 3 , } .
Consequently, comparing with
p ¯ n 2 , 2 1 2 , 3 1 3 , 4 1 4 , 5 3 5 , 6 5 6 , 8 2 7 , 9 5 8 , 11 1 9 , 12 9 10 , for n { 1 , 2 , 3 , } .
we explicitly see that
π ¯ ( m 2 ) { 0 , 3 , 5 , 7 , 11 , 16 , } for m { 1 , 2 , 3 , } .
That is, the prime-average version of Legendre actually holds for integer m 1 .
Furthermore, the argument above nowhere explicitly uses the fact that m need be an integer — so the prime-average version of Legendre actually holds for real m 5 . Finally to check real range m < 5 use a suitable finite truncation of the sum
π ¯ ( x ) = i = 1 Heaviside ( x p ¯ i ) ; Heaviside ( 0 ) = 1 .
Thereby one verifies that the prime-average version of Legendre certainly holds for real m 1 . (Actually m p ¯ 2 1 = 5 / 2 1 = 0.581138830 is sufficient).
For another way of extending the argument above, consider this: If we were to define π ¯ ( [ m + 1 ] 2 ) = n , then the average-prime gaps below p n would be at most of size ln n and so
π ¯ ( [ m + 1 ] 2 ) π ¯ ( m 2 ) 2 m + 1 ln n = 2 m + 1 ln π ¯ ( [ m + 1 ] 2 ) 2 m + 1 ln { 2 π ( [ m + 1 ] 2 ) } .
Thence for [ m + 1 ] 2 > exp 139 / 125 , certainly for m 1 , we have
π ¯ ( [ m + 1 ] 2 ) π ¯ ( m 2 ) 2 m + 1 ln { 2 [ m + 1 ] 2 / ( ln ( [ m + 1 ] 2 ) 139 125 ) } .
Expanding the logarithm
π ¯ ( [ m + 1 ] 2 ) π ¯ ( m 2 ) 2 m + 1 { 2 ln [ m + 1 ] + ln 2 ln ( 2 ln [ m + 1 ] 139 125 ) } .
Ultimately, for m 4 we certainly have
π ¯ ( [ m + 1 ] 2 ) π ¯ ( m 2 ) 2 m + 1 2 ln [ m + 1 ] .
Sacrificing a little precision in the interests of a slightly wider range of validity, for m 1 we have
π ¯ ( [ m + 1 ] 2 ) π ¯ ( m 2 ) 2 m 1 2 ln [ m + 1 ] .
So there will be many average-primes p ¯ n between consecutive squares.

5.4. Prime-Average Analogue of Oppermann

The ordinary Oppermann conjecture is the hypothesis that the ordinary primes p n satisfy π ( m [ m + 1 ] ) > π ( m 2 ) > π ( m [ m 1 ] ) for integer m 2 . This is completely equivalent to demanding that π ( [ m + 1 2 ] 2 ) > π ( m 2 ) > π ( [ m 1 2 ] 2 ) .
Then the most compelling prime-average analogue of Oppermann would be that the averaged primes p ¯ n satisfy π ¯ ( [ m + 1 2 ] 2 ) > π ¯ ( m 2 ) > π ¯ ( [ m 1 2 ] 2 ) . But (adapting the argument presented above for Legendre) this is easily checked to be true, and in fact much more can be said.
Let π ¯ ( m 2 ) = n , then for integer n 3 corresponding to m 5 we still have
m 2 < p ¯ n + 1 < m 2 + ln 2 + 2 ln m .
Thence
m 2 < p ¯ n + 1 < m + 1 2 2 m 2 ln m + 1 4 ln 2 < m + 1 2 2 .
It is easy to check that for small integers m this continues to hold for m 1 . (For real values of m the domain of validity is m p ¯ 1 1 2 = 2 1 2 > 0.91421356237 ).
Similarly let π ¯ ( [ m 1 2 ] 2 ) = n , then through an entirely analogous argument
m 1 2 2 < p ¯ n + 1 < m 1 2 2 + ln 2 + 2 ln m 1 2 .
Thence
m 1 2 2 < p ¯ n + 1 < m 2 m 2 ln m 1 2 + 1 4 ln 2 < m 2 .
It is easy to check that for small integers m this continues to hold for m 2 . (For real values of m the domain of validity is m p ¯ 1 = 2 = 1.414213562 ).
So the prime-average analogue of Opperman is unassailably true for real m 2 .

5.5. Prime-Average Analogue of Brocard

The ordinary Brocard conjecture is the hypothesis that the ordinary primes p n satisfy π ( p n + 1 2 ) π ( p n 2 ) 4 for n 2 . Note that the ordinary Brocard conjecture is implied by the ordinary Oppermann conjecture. Note that p n + 1 p n + 2 and that ordinary Oppermann implies the existence of at least one prime in each of the four regions
( p n 2 , [ p n + 1 2 ] 2 ) , ( [ p n + 1 2 ] 2 , [ p n + 1 ] 2 ) , ( [ p n + 1 ] 2 , [ p n + 3 2 ] 2 ) , ( [ p n + 3 2 ] 2 , [ p n + 2 ] 2 ) .
Generalizing this, the ordinary Oppermann conjecture implies a generalization of the ordinary Brocard conjecture
π ( p n + 1 2 ) π ( p n 2 ) 2 g n ; ( n 2 ) .
Then the most compelling prime-average analogue of Brocard would be that the averaged primes p ¯ n satisfy π ¯ ( p ¯ n + 1 2 ) π ¯ ( p ¯ n 2 ) 4 for suitable values of n. But (adapting the argument presented above for Legendre) this is easily checked to be true, and in fact much more can be said.
Write p ¯ n + 1 = p ¯ n + g ¯ n and use prime-average analogue of Oppermann. Then
π ¯ ( p ¯ n + 1 2 ) π ¯ ( p ¯ n 2 ) = π ¯ ( [ p ¯ n + g ¯ n ] 2 ) π ¯ ( p ¯ n 2 ) > 2 g ¯ n ; ( n 1 ) .
But g ¯ n > ln n 2 for n 1 so
π ¯ ( p ¯ n + 1 2 ) π ¯ ( p ¯ n 2 ) > ln n ; ( n 1 ) .
So certainly
π ¯ ( p ¯ n + 1 2 ) π ¯ ( p ¯ n 2 ) > 4 ; ( n e 4 ) .
Noting that e 4 = 54.59815003 , to complete the analysis it suffices to explicitly check the first 55 average primes. Then
π ¯ ( p ¯ n + 1 2 ) π ¯ ( p ¯ n 2 ) > 4 ; ( n 4 ; p ¯ n 4 1 4 ) .
So certainly the prime-average analogue of Brocard holds over a suitable range.

5.6. Prime-Average Analogue of Firoozbakht

The ordinary Firoozbakht conjecture is the hypothesis that the quantity ( p n ) 1 / n is monotone decreasing for the ordinary primes p n . The prime-average analogue of Firoozbakht would be the hypothesis that ( p ¯ n ) 1 / n is monotone decreasing for the averaged primes p ¯ n . But this is easily checked to be true (see for instance reference [9]) and in fact much more can be said.
Note
( p ¯ n + 1 ) 1 / ( n + 1 ) < ( p ¯ n ) 1 / n n ln p ¯ n + 1 < ( n + 1 ) ln p ¯ n .
So let us compute
Q : = n ln p ¯ n + 1 ( n + 1 ) ln p ¯ n = n ln ( p ¯ n + g ¯ n ) ( n + 1 ) ln p ¯ n = n ln ( 1 + g ¯ n / p ¯ n ) ln p ¯ n .
This quantity is certainly less than
Q < n g ¯ n p ¯ n ln p ¯ n < n ln n 1 2 n ln n 1 + ln ln n ln n ln p ¯ n < 2 ln p ¯ n ,
which clearly becomes negative for p ¯ n > e 2 , that is, for n 12 . Checking n [ 1 , 11 ] by direct computation shows that Q < 0 for all n 1 , so the prime-average analogue of Firoozbakht is unassailably true for all n 1 .

5.7. Prime-Average Analogue of Fourges

The ordinary Fourges conjecture is typically presented in terms of first rearranging the ordinary Firoozbakht conjecture into the form
ln p n + 1 ln p n n < 1 + 1 n n ; ( n 1 ) ,
and then weakening it by making the less restrictive demand that
ln p n + 1 ln p n n < e ; ( n 1 ) ,
To obtain a prime-average analogue of the Fourges conjecture we first rearrange the prime-average analogue Firoozbakht conjecture into the form
ln p ¯ n + 1 ln p ¯ n n < 1 + 1 n n ; ( n 1 ) ,
and then weaken it by making the less restrictive demand that
ln p ¯ n + 1 ln p ¯ n n < e ; ( n 1 ) .
Since this is a weakening, the prime-average analogue of Fourges is unassailably true for all n 1 .

5.8. Prime-Average Analogue of Nicholson

The ordinary Nicholson conjecture is typically presented in terms of first rearranging the ordinary Firoozbakht conjecture into the form
p n + 1 p n n < p n ; ( n 1 ) ,
and then (slightly) strengthening it by making the more restrictive demand that
p n + 1 p n n < n ln n ; ( n 1 ) .
To obtain a prime-average analogue of the Nicholson conjecture we first rearrange the prime-average analogue Firoozbakht conjecture into the form
p ¯ n + 1 p ¯ n n < p ¯ n ; ( n 1 ) ,
and then, noting p ¯ n > p [ n / 2 ] > ( n / 2 ) ln ( n / 2 ) , with the final inequality holding for n 20 , (slightly) strengthen it by making the more restrictive demand that
p ¯ n + 1 p ¯ n n < ( n / 2 ) ln ( n / 2 ) ; ( n n 0 ) ,
for some n 0 20 yet to be determined. That is, our proposed form of the prime-average analogue of Nicholson is equivalent to
n ln p ¯ n + 1 p ¯ n < ln ( n / 2 ) ln ( n / 2 ) ; ( n n 0 ) .
Since
n ln p ¯ n + 1 p ¯ n = n ln 1 + g ¯ n p ¯ n < n ln 1 + 2 n < 2 ,
with the inequalities holding for n 4 , we see that our proposed version of the prime-average analogue of the Nicholson conjecture will plausibly hold whenever
ln ( n / 2 ) ln ( n / 2 ) > 2 ,
that is, whenever n 5 , and so will certainly hold for all n 20 . Finally, explicitly checking all integers below 20 we have an explicit prime-average analogue of Nicholson:
p ¯ n + 1 p ¯ n n < ( n / 2 ) ln ( n / 2 ) ; ( n 6 ) .

5.9. Prime-Average Analogue of Farhadian

The ordinary Farhadian conjecture is typically presented in terms of (slightly) strengthening the ordinary Nicholson conjecture by making the even more restrictive demand that
p n + 1 p n n < p n ln n ln p n ; ( n 1 ) .
To obtain a prime-average analogue of the Farhadian conjecture we again (slightly) strengthen the prime-average analogue of Nicholson conjecture by making some (slightly) more restrictive demand. There is a potential infinity of stronger demands that one might make, but we shall try to keep close to the spirit of the original Farhadian conjecture by demanding
p ¯ n + 1 p ¯ n n < p n 2 ln p n ln ( n / 2 ) ; ( n n 0 ) .
Since p n / ln p n < n for n 4 this certainly strengthens the prime-average analogue of Nicholson.
This would be equivalent to
n ln p ¯ n + 1 p ¯ n < ln p n 2 ln p n ln ( n / 2 ) ; ( n n 0 ) .
As previously noted
n ln p ¯ n + 1 p ¯ n = n ln 1 + g ¯ n p ¯ n < n ln 1 + 2 n < 2 ,
with these inequalities holding for n 4 .
This now suggests we consider the inequality
ln p n 2 ln p n ln ( n / 2 ) > 2
which holds for n 5 (though the original weakening to get to prime-average analogue Nicholson holds only for n 20 ). Explicitly checking small integers
n ln p ¯ n + 1 p ¯ n < ln p n 2 ln p n ln ( n / 2 ) ; ( n 7 ) .
Equivalently
p ¯ n + 1 p ¯ n n < p n 2 ln p n ln ( n / 2 ) ; ( n 7 ) .
As expected, because the prime-average analogue of Farhadian is slightly stronger than the prime-average analogue of Nicholson, it is valid only on a slightly smaller domain.

6. Discussion

We have explicitly seen above that the averaged primes p ¯ n = 1 n i = 1 n p i satisfy suitably defined averaged-prime analogues of the Cramer, Andrica, Legendre, Oppermann, Fourges, Firoozbakht, Nicholson, and Farhadian hypotheses. The key step in all cases was the extremely tight bound in the averaged-prime gaps: g ¯ n = p ¯ n + 1 p ¯ n < ln n for n 3 . The only (relatively minor) potential difficulty lies in the design and formulation of truly compelling prime-average analogues of these hypotheses.
On the other hand, what does this tell us about the ordinary primes p n ?
  • Not as much as one might hope. We certainly have the identity
g n = [ ( n + 1 ) p ¯ n + 1 n p ¯ n ] [ n p ¯ n ( n 1 ) p ¯ n 1 ] = [ g ¯ n + g ¯ n 1 ] + n [ g ¯ n g ¯ n 1 ] .
Unfortunately a naive application of this equality merely leads to g n = O ( n ln n ) — bounds too weak to be useful. So even though the numerical evidence is quite compelling [13,14], we must conclude that significant progress on any of the usual Cramer, Andrica, Legendre, Oppermann, Fourges, Firoozbakht, Nicholson, and Farhadian conjectures for ordinary primes would require considerably more subtle arguments.

Funding

This research received no external funding.

Data Availability Statement

All relevant data is explicitly contained within this article.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. OEIS Sequence A034387. Sum of Primes ≤ n. Available online: https://oeis.org/A034387 (accessed on 13 July 2025).
  2. Dusart, P. Autour de la Fonction qui Compte le Nombre de Nombres Premiers. Ph.D. Thesis, Universite de Limoges, Limoges, France, 1998. [Google Scholar]
  3. Hassani, M. A remark on the Mandl’s inequality. Octogon Math. Mag. 2007, 15, 567–572. [Google Scholar]
  4. Sinha, N.K. On the asymptotic expansion of the sum of the first n primes. arXiv 2010, arXiv:1011.1667. [Google Scholar]
  5. Axler, C. On the sum of the first n prime numbers. J. Théor. Nombres 2019, 31, 293–311. [Google Scholar] [CrossRef]
  6. Axler, C. New bounds for the sum of the first n prime numbers. arXiv 2016, arXiv:1606.06874. [Google Scholar] [CrossRef]
  7. Mandl, R. On the sum and the average of the first primes. Not. Am. Math. Soc. 1974, 21, A54–A55. [Google Scholar]
  8. OEIS Sequence A351914. Numbers m Such That the Average of the Prime Numbers up to m Is Greater Than or Equal to m/2. Available online: https://oeis.org/A351914 (accessed on 13 July 2025).
  9. Sun, Z.-W. On a sequence involving sums of primes. Bull. Aust. Math. Soc. 2013, 88, 197–205. [Google Scholar] [CrossRef]
  10. Rosser, J.B. The n-th Prime is Greater than n log n. Proc. Lond. Math. Soc. 1939, 45, 21–44. [Google Scholar] [CrossRef]
  11. Rosser, J.B.; Schoenfeld, L. Approximate formulas for some functions of prime numbers. Ill. J. Math. 1962, 6, 64–94. [Google Scholar] [CrossRef]
  12. Dusart, P. Explicit estimates of some functions over primes. Ramanujan J. 2018, 45, 227–251. [Google Scholar] [CrossRef]
  13. Visser, M. Verifying the Firoozbakht, Nicholson, and Farhadian Conjectures up to the 81st Maximal Prime Gap. Mathematics 2019, 7, 691. [Google Scholar] [CrossRef]
  14. Visser, M. Strong Version of Andrica’s Conjecture. Int. Math. Forum 2019, 14, 181–188. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Visser, M. On the Arithmetic Average of the First n Primes. Mathematics 2025, 13, 2279. https://doi.org/10.3390/math13142279

AMA Style

Visser M. On the Arithmetic Average of the First n Primes. Mathematics. 2025; 13(14):2279. https://doi.org/10.3390/math13142279

Chicago/Turabian Style

Visser, Matt. 2025. "On the Arithmetic Average of the First n Primes" Mathematics 13, no. 14: 2279. https://doi.org/10.3390/math13142279

APA Style

Visser, M. (2025). On the Arithmetic Average of the First n Primes. Mathematics, 13(14), 2279. https://doi.org/10.3390/math13142279

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop