The Integral of the Inverse of the Primes

Abstract

The present paper gives the proof of the set of primes as continuum and evaluates the analytical formula for the integral of the inverse of the primes over the distance. First it starts with the density of the primes, shortly recapitulates the prime-number-formula and the complete-prime-number-formula, the proof of the set of primes as continuum. The theoretical evaluation is followed in annexes by numerical evaluation of the theoretical results and of different constants, which represent inherent properties of the set of primes.

Share and Cite:

Doroszlai, P. and Keller, H. (2023) The Integral of the Inverse of the Primes. Advances in Pure Mathematics, 13, 250-266. doi: 10.4236/apm.2023.135018.

1. Introduction

For the integrability of the inverse of the primes it is a prerequisite, that the set of primes represents a continuum, meaning that the difference between adjacent primes relative to the value of the prime (distance from the origin) approaches zero.

In order to prove this prerequisite condition all steps starting with the density of the primes, their number and their distribution is shortly repeated, with reference to more detailed evaluations.

First the density of the primes as inverse of the logarithm of the distance is repeated using the fundamental identity of Riemann (see ref. [1] ), followed by the approximation of the integral of the density by summation. The error of this approximation is compensated by a recursive formula (see ref. [2] ). This involves the evaluation of a constant factor as inherent property of the set of primes.

The next step is the prime-number-formula and the proof, that this formula represents the low limit function of the number of primes, including its dispersion around of the exact value, which is evaluated with the recursive formula, given by the complete-prime-number-formula (see ref. [2] ). The standard deviation of the dispersion is proportional to the number of primes present up to the square root of the distance. The factor of proportionality is again an inherent property of the set of the primes.

The difference between the exact number of the primes over the distance and the corresponding value of the prime-number-formula is proportional to the square of the number of primes present up to the square root of the distance. The factor of proportionality is a further inherent number of the set of the primes.

The fact, that the primes represent a continuum is proved by the fact, that within an interval equal to the square root of the distance, at any distance there is at least one prime present. This is achieved by reflecting the sets of the primes over a point at any distance (see ref. [3] ), resulting the double density of occupation by the series of multiples of the primes. This reflection is used in the above reference to prove Goldbach’s conjecture and the infinity of k-tuples of primes, including twin primes.

Finally, the integral of the inverse of the primes is achieved using the analogy of the evaluation of the inverse of integers resulting Euler’s constant. The proof, that the set of the primes represents a continuum, rendering the integral of the inverse of the primes as variable is a very important fact in prime number theory.

2. Density of Primes

For the local density of positions meeting the requirement of the first constrain, the constrain of non-divisibility, the following lemma is formulated:

Lemma 2.1:

The density of primes at the distance (c) from the origin corresponds to the density of positions left free by the union of the series of multiples of the first ( R ( c ) = π ( c ) ) primes, for long distances it is approaching the inverse of the logarithm of the distance: ( 1 / l n ( c ) ).

This lemma may be proven two ways:

Proof 1: The series of multiples (arithmetic progression) of any prime ( P ( n ) ) covers a subset of all positive integer positions, representing the ( 1 P ( n ) )-th part of all integer positions. The share of integer positions not covered by the series of multiples of each of these primes is: ( 1 1 P ( n ) ). The share of free positions is

multiplicative. Therefore, starting with the first prime, up to the ( R ( c ) )-th prime the share, or density of the remaining free positions—which are not covered by the union of the series of multiples of all the first ( R ( c ) ) primes—is given by the Euler product. For the primes this gives:

n = 1 R ( c ) [ 1 1 P ( n ) ] (2.1)

The fundamental identity of Riemann (see ref. [1] ) gives, for ( s = 1 ) the identity of Euler, with (n) running though all positive integers and considering, that at ( c = P ( n ) ) only the first ( R ( P ( n ) ) ) primes are covering formerly free positions is:

lim c [ n = 1 R ( c ) [ 1 1 P ( n ) ] ] = lim c [ n = 1 c 1 n ] 1 = ( γ + 1 c 1 x d x ) 1 = 1 γ + ln ( c ) = 1 ln ( e γ c ) = 1 ln ( δ 2 c ) (2.2)

The constant above is the Euler’s constant ( γ = 0.577215664901532 ). This gives the product density of free integer positions at the distance ( c = P ( n ) ), written with the constant of Mertens ( δ 2 = e γ ) as the Euler-product.

lim c [ δ 2 j = 1 R ( c ) [ 1 1 P ( j ) ] ] = lim c ( n = 1 c 1 n γ ) 1 = ( 1 c 1 x d x ) = 1 ln ( c ) (2.3)

Proof 2: The Euler-product may be evaluated with the following recursions formula:

D f r e e _ E u ( c ) = j = 1 R ( c ) [ 1 1 P ( j ) ] ; D f r e e _ E u ( 0 ) = 1 ; D f r e e _ E u ( n ) = D f r e e _ E u ( n 1 ) [ 1 1 P ( n ) ] (2.4)

This recursions formula may be written as follows:

D f r e e ( n + 1 ) = D f r e e ( n ) + ( d d x D f r e e ( x ) ) Δ x = D f r e e ( n ) D f r e e ( n ) x Δ x if Δ x = P ( n + 1 ) P ( n ) (2.5)

The total density of occupation by the union series of multiples (arithmetic progression) of all primes—following the location of the (n + 1)-th prime—is equal to the density of occupation by the series of multiples of all primes up to the location of the (n)-th prime plus the rise of the average density of occupation by the series of multiples of the (n)-th prime, if the prime ( P ( n + 1 ) ) is reached.

What is the analytical representation of the local density of free positions following the (n)-th prime in explicit form? To answer this question, the above recursions formula must be transformed into a differential equation and solved.

By this transformation the discrete integer variable ( P ( n ) ) must be replaced by the continuous (real) variable (x) covering the set of all positive real numbers. The density of occupation by the series of multiples of the (n)-th prime is (1/x).

The density of free positions decreases by ( D f r e e ( n ) x Δ x ) if the next primes is reached. The transformed recursions formula is the following:

( d d x D f r e e ( x ) ) Δ x = D f r e e ( x ) 2 x Δ x (2.6)

The differential equation of the local density of tree positions is herewith:

1 D f r e e ( x ) 2 ( d d x D f r e e ( x ) ) = d d x 1 D f r e e ( x ) = 1 x (2.7)

Integrated, the following solution for the logarithmically distributed “primes” is obtained:

d d x 1 D f r e e ( x ) = 1 x ; D f r e e ( x ) = 1 ln ( x ) + C ; C = 1 for best fitting (2.8)

Equations (2.3) and (2.8) correspond to the lemma, concluding the proof.

3. The Number of Primes

De la Valée Poussin proved 1899, (ref. [1] ), that the number of primes up to the distance (c) is given by the integral of the logarithmic density, which may be written as sum over all integers:

π ( c ) = L i ( c ) + O ( c ) 2 c 1 ln ( c ) d c ; π a p p r ( c ) n = 2 c 1 ln ( c ) (3.1)

This above sum may be written as summing up first over all integers within the sections of the length ( c ) and then summing up over all the ( c ) sections of the length ( c ). Taking the average value over each section and summing up over the sections is a first simplification (see Annex 2 and Annex 3), in the following used as sum over all sections:

π a p p r ( c ) n = 2 c 1 ln ( c ) = j = 2 c [ n = ( j 1 ) c j c 1 ln ( n ) ] j = 1 c c ln ( j c ) (3.2)

The well proven prime-number-formula PNF results from a second simplification of the above approximation by taking for each of the sections the smallest value of the density at ( j = c ):

j = 1 c c ln ( j c ) > π P N F ( c ) = j = 1 c c ln ( c c ) = c ln ( c ) = S ( c ) (3.3)

The difference between the first simplification of the number of primes and the value resulting from the PNF, (ref. [2] [3] ), is proportional to ( R ( c ) 2 = S ( c ) 2 ), the square of the number of primes up to the distance ( c ):

j = 1 c c ln ( j c ) j = 1 c c ln ( c c ) = j = 1 c c ln ( j c ) c ln ( c ) j = 1 c 1 = j = 1 c c ln ( j c ) S ( c ) = γ c R ( c ) 2 (3.4)

because the value ( γ c ) quickly and asymptotically converges to a constant value (Annex 2):

γ c = c ln ( c ) R ( c ) 2 ( j = 1 c ln ( c ) ln ( j c ) c ) = 1 2 R ( c ) ( j = 1 c ln ( c ) ln ( j c ) c ) = 1 R ( c ) ( j = 1 c ln ( c ) ln ( j c ) c 2 ) (3.5)

Thus, the error of the second simplification resulting the PNF at the distance (c) is proportional to ( R ( c ) 2 ), the square of the number of primes present at ( c ). The factor of proportionality is ( γ c = 0.28313 ).

The relation between the error of the PNF at (c) and the square of the number of primes up to ( c ) is invariant. The constant factor of proportionality ( γ c ) is an inherent propriety of the number of primes.

The systematic error of the PNF may be corrected by recursive application of a correction, resulting the complete-prime-number-formula (CPNF) below, evaluated and demonstrated in ref [2] :

π a p p r ( c ) = j = 1 c c ln ( j c ) + m = 1 c [ γ s e c m j = 1 c ( 1 2 m + 1 ) c ( 1 2 m + 1 ) ln [ j c ( 1 2 m + 1 ) ] ] (3.6)

This formula converges very fast: two steps with ( m = 2 ) are already sufficient.

The factor ( γ s e c = 0.036765 )—as an inherent property of the set of primes—is evaluated in Annex 3.

4. The Set of Primes as Continuum

The proof of the fact, that the set of primes represents a continuum is based on the proof, that within an interval equal to the square root of the distance to the origin there is always at least on prime present. If this is the case, then the difference between consecutive primes is smaller than the double value of the interval and—relative to the size of the distance—its value approaches zero with the distance growing.

For the proof, that within an interval equal to the square root of the distance there is always a prime present, the double density of occupation by the union of the series of multiples of the primes (arithmetic progression) is introduced. This double density of occupation is—as it is explained below—symmetric over the point of reflection. Consequently, if within the first interval of the length equal to the square root of the distance (c) there are primes present, then the same amount is present within the last interval of the same length just below ( 2 c ).

Reflecting the series of multiples of any prime over a point at the distance (c) from the origin results the double density of occupation by this prime if the prime is a relative prime to (c). This, because the positions covered by the straight and the reflected series of multiples are mutually exclusive, if (c) is equal to a prime. The integer positions remaining free by the double density of occupation represent equidistant primes to the point of reflection, composing diads (see ref. [2] ). If any of the primes is dividend of the distance of the point of reflection (c), then the reflected series of multiples of this specific prime does not cover additional positions: The double density of occupation—with (c) as a prime—represents the minimum of positions left free by the double density of occupation.

The local density of free positions left by the density of occupation by the straight series of multiples of primes at the distance (d, 2 < d < c ) below the

point of reflection is ( 1 ln ( c d ) ), by the reflected series it is ( 1 ln ( c + d ) ). The

combined local density of free positions is evaluated in ref. [2] yielding with the constant ( δ 2 = 1.320324 ) having the double value of the twin prime constant (C2) defined by G. H. Hardy and John Littlewood, see ref. [4] :

D l o c a l ( c , d ) = δ 2 ln ( c d ) ln ( c + d ) > δ 2 ln ( c ) 2 (4.1)

Similarly to the evaluation of the number of primes as simplification of the integral of the local logarithmic density of primes in (3.1), the best estimate of the local density of the diads results as simplification of the integral of the above density by taking the sum over all integers (this same generalization from the primes to the twins, respectively to the k-tuples was made already by Hardy and John Littlewood):

π d i a d s _ a p p r ( c ) n = 1 c δ 2 ln ( c d ) ln ( c + d ) (4.2)

This above sum may be written as summing up first over all integers within the sections of the length ( c ) and then summing up over all the ( c ) sections analogue to (3.2). Taking the average value over each section and—as a first simplification—summing over the sections gives the best estimate value of the number of diads:

π d i a d s _ a p p r ( c ) = j = 1 c n = ( j 1 ) c j c δ 2 ln ( c n ) ln ( c + n ) j = 1 c δ 2 c ln ( j c ) ln ( 2 c j c ) (4.3)

Similarly, to the second simplification in case of the primes in (3.3), the low limit of the best estimate number of diads results with the density taken for all sections of the length ( c ) at the upper limit of the sections at ( j = c ) the diads-number-formula (DNF):

π d i a d s _ a p p r _ l o w ( c ) = π D N F ( c ) = j = 1 c δ 2 c ln ( c c ) ln ( 2 c c c ) = δ 2 c ln ( c ) 2 (4.4)

This function represents the absolute low limit of the best estimation of the number of diads at (c). This corresponds with the fact, that the standard deviation of the dispersion of the effective number of diads around its best estimate value, divided by ( R ( c ) )—the number of primes up to ( c )—converges to a constant value (see ref. [2] ):

lim c S D Δ π _ r e l ( c ) = lim c 1 c c ( π d i a d s _ a p p r ( c ) π d i a d s _ e f f ( c ) R ( c ) ) 2 = 0.018035 (4.5)

Therefore, the dispersion of the effective number of diads grows proportional to ( R ( c ) 2 ).

It is known, that at the distance (c) the difference between the effective number of primes ( π ( c ) ) and the PNF is proportional to the square of the number of primes up to ( c ), see (3.4) and ref. [2] :

π a p p r ( c ) S ( c ) = γ c ( c ln ( c ) ) 2 with the constant ( γ c = 0.28313 ) (4.6)

This identity allows to state, that the difference between the best estimate number of diads and the DNF is greater, than the distance (c) divided by the square of the logarithm of the distance ( ln ( c ) 2 ), multiplied by a constant ( 4 δ 2 λ c = 1.49524 ):

Δ π d i a d s ( c ) = π d i a d s _ a p p r ( c ) π d i a d s _ l o w ( c ) > j = 1 c δ 2 c ln ( c ) ln ( 2 c j c ) δ 2 c ln ( c ) 2 (4.7)

Because of symmetry of the double density of occupation and with (4.2) follows:

Δ π d i a d s ( c ) = δ 2 ln ( c ) j = 1 c c ln ( j c ) δ 2 c ln ( c ) 2 = δ 2 ln ( c ) π a p p r ( c ) δ 2 c ln ( c ) 2 (4.8)

With (4.7) follows:

Δ π d i a d s ( c ) = δ 2 ln ( c ) ( S ( c ) + γ c R ( c ) 2 ) δ 2 ln ( c ) 2 = ( δ 2 c ln ( c ) 2 + γ c δ 2 c ln ( c ) 2 ) δ 2 c ln ( c ) 2 = 4 γ c δ 2 c ln ( c ) 2 (4.9)

The DNF (4.4) taken at ( c 2 ) gives the number of diads within the first section of the length ( c ). Because of symmetry in case of the double density of occupation the same amount of diads is present within the last section at ( 2 c c 2 ) of the same length and they are growing to infinity:

π d i a d s _ a p p r _ l a s t ( c ) = δ 2 c 2 ln ( c 2 ) 2 = 2 δ 2 c ln ( c 4 ) 2 (4.10)

If in case of the double density of occupation at ( 2 c c ) the number of free positions within the last section of the length ( c ) is rising without limit to infinity, then this is certainly the case as well within the larger distance of the length () and even more in case of the single density of occupation.

The same is the case within the section of the length ( 2 c ) following ( 2 c ), respectively within the section of the length ( 2 c ) following (c). This, because the first free position covered by the series of multiples of the smallest possible

prime greater then ( P ( R ( c ) ) ), equal to ( P ( R ( c + 1 ) ) ) is already greater than ( c + c ).

This smallest prime must be ( P ( R ( c ) + 1 ) c + 1 ) in case ( P ( R ( c ) ) ) and ( P ( R ( c ) + 1 ) ) are twins. In this case ( P ( R ( c ) + 1 ) c + 1 ) and the square of this smallest possible prime is already over ( c + c ):

[ P ( R ( c ) + 1 ) ] 2 = [ P ( R ( c ) ) + 1 ] 2 = [ P ( R ( c ) ) ] 2 + 4 P ( R ( c ) ) + 4 ( c 1 ) 2 + 4 ( c 1 ) + 4 = c 2 c + 1 + 4 c 4 + 4 = c + 2 c + 1 > c + c (4.11)

Herewith the low limit of free positions left within the section of the size ( c ) following (c) is not smaller, than the number of free positions within the last section of the same size just below (c).

It follows, that the set of the primes up to ( P ( R ( c ) ) ) normed with this last prime represent—as limit—is a continuum, since for any prime within the set the following limit is valid:

P ( p + 1 ) P ( p ) P ( p ) < P ( p + 1 ) + 2 P ( p ) + 1 P ( p ) P ( p ) = 2 P ( p ) + 1 P ( p ) < 3 P ( p ) (4.12)

lim p 3 P ( p ) = 0 and herewith: lim p P ( p + 1 ) P ( p ) P ( p ) = 0

The knowledge of the function of the exact value of the number of the primes allows for the evaluation of the standard deviation of the effective number of the primes around the exact function, given in ref [2] . From the constancy of the relative value of the standard deviation follows the integrability on the inverse of the primes.

Additionally, the following facts prove the infinity of the number of primes within the last section:

One of the proofs of the infinity of the number of primes states, that there is always a new prime, since the product of all known primes plus one is certainly not divisible by any of the known primes.

But the number equal to the product of all known primes less one is certainly another prime too. The two neighboring positions to the product of all known primes are twin primes. Their number is therefore infinite as well.

5. The Integral of the Inverse of the Primes

With (4.12) the set of the series of multiples of all primes up to ( P ( R ( c ) ) ) normed with even this last prime represents—as limit—a continuum. As an analogy for the integrability of the inverse of the primes the integral of the inverse of the integers giving the formula of Euler may be taken:

lim q n = 1 q 1 n = 1 e γ q 1 x d x = ln ( e γ q ) = γ + ln ( q ) ; γ = 0.5772156649015329 (5.1)

The value of the Euler constant accounts for the surface difference between the analytical function and the stair function corresponding to the summation, as shown in the figure below, with (q) an integer and (x) a real variable. The surface below the lower stair function of the harmonic series is obviously always smaller than the surface below the analytical function (1/x) see Figure 1. This difference accounts for ( γ ).

In case of the primes a similar corresponding relation may be evaluated. Compared with the harmonic series, the surface between two primes the surface is smaller:

1 P ( p + 1 ) < r = P ( p ) P ( p + 1 ) 1 r < ln ( P ( p + 1 ) ) ln ( P ( p ) ) (5.2)

Thus ( 1 r ) must be replaced by ( 1 r ln ( r ) ) in the integral. Relation (5.1) may be written for the primes—with the constant ( γ P )—as follows:

p p = 1 p 1 P ( p p ) = P ( 1 ) [ P ( 1 ) ] γ P 1 r ln ( r ) d r = γ P + ln ( ln ( P ( p ) ) ) = ln ( e γ P ln ( P ( p ) ) ) = ln ( ln ( P ( p ) e γ P ) ) (5.3)

The constant ( γ P = 1.261503 ) is evaluated in Annex 6, again an inherent property of the set of primes.

Figure 1. Comparison of the contribution of the surface between two consecutive primes to the integral of the inverse of the real variables, resp. of the inverse of the primes.

The sum of the inverse of the primes approaches slowly a final value. The dispersion is decreasing with the distance, but for the evaluation of its standard deviation a larger set of primes should be used, as in the present paper.

Annexes

Annex A1: Definition of Vectors and Variables for the Numeric Evaluation

First some general functions and values are defined: Based on the requirement of the constrain of non-divisibility by all smaller primes, a set of consecutive primes is evaluated and written to a file. From this file they are read: ( P = READPRN ( " Primes _ large .prn " ) , P ( 0 ) = 1 ).

The number of the primes in the set and their numbering are: ( N P = r o w s ( P ) 1 , N P = 5003713 , n = 1 , 2 , , N P ).

The complete-prime-number-formula CPNF is evaluated with the following routine (floor and ceil stand for round down and round up):

exp _ ( x ) : = e X ; γ s e c = 0.036765 : c _ exp ( c , m ) : = exp _ ( 1 2 m + 1 ) (A1.1)

For the evaluation of the number of the next smaller prime to the distance (c) the routine ( n n e x t ( c , n l a s t ) ) resulting the index (n) of the prime next to any integer is needed ( P ( n ) c < P ( n + 1 ) ). The evaluation starts either at the last evaluated index ( n l a s t ), or at the index resulting from the complete-prime-number-formula (see A1.1 and ref. [2] ). This, to shorten some of the evaluation processes. In case ( P ( n ) ) is greater than the distance, the index is lowered. In case it is smaller, the index is risen until the corresponding prime is just smaller, or equal to the distance:

(A1.2)

Further functions are the formula evaluating the index of the next smaller prime to any distance and to the square root of any distance.

S e f f ( c ) = n n e x t ( c , 1 ) ; R e f f ( c ) = n n e x t ( c , 1 ) ; S ( c ) = c ln ( c ) ; R ( c ) = c ln ( c ) (A1.3)

For the visualization of the results of the analysis the functions will be taken at sparse values, at distances corresponding to multiples of the square root of the largest prime considered.

Δ Δ s p = f l o o r ( P ( N P ) ) ; k l i m i t = f l o o r [ P ( N P ) Δ Δ s p ] 2 ;

k = 1 , 2 , , k l i m i t ; c s p ( k ) = k Δ Δ s p (A1.4)

The vectors of the indexes of the primes next smaller to these sparse distances ( P ( n s p ( k ) ) < c s p ( k ) < P ( n s p ( k + 1 ) ) ), respectively to their square root ( P ( n s p ( k ) ) < c s p ( k ) < P ( n s p ( k + 1 ) ) ), are evaluated as ( n s p ( c ) ) respectively as ( n s p ( c ) ). They are evaluated once and written to files. They are read from these files:

π s p ( k ) = n n e x t [ c s p ( k ) , 1 ] ; π s q r _ s p ( k ) = n n e x t [ c s p ( k ) , 1 ] (A1.5)

WRITEPRN ( " index_distance_sp .prn " ) = π s p ;

π s p = REDPRN ( " index_distance sp .prn " )

WRITEPRN ( " index_distance_sqr_sp .prn " ) = π s q r _ s p

π s q r _ s p = REDPRN ( " index_distance sqr_sp .prn " )

Annex A2: Evaluation of the Number of Primes as Sum over Sections

The number of primes as sum over sections is evaluated with (3.2) as a first simplification:

π s e c _ a p p r ( c ) = j = 1 f l o o r ( c ) c ln ( j c ) (A2.1)

The number of primes resulting from the second simplification (3.3) results the PNF. The difference between the first and the second simplification results the error of the PNF. At the instance (c) it is proportional to ( R ( c ) 2 ), the square of the number of the series of multiples of primes, which are covering positions at the distance (c). The factor of proportionality is evaluated over the distance as follows:

γ c _ a p p r _ ( c ) = π s e c _ a p p r _ ( c ) S ( c ) R ( c ) 2 = [ j = 1 c c ln ( j c ) c ln ( c ) ] ln ( c ) c 1 R ( c )

= [ j = 1 c ln ( c ) ln ( j c ) c 2 ] 1 R ( c )

γ c _ a p p r _ ( k ) = 1 R ( c s p ( k ) ) [ j = 1 c e i l ( c s p ( k ) ) ln ( c s p ( k ) ) ln ( j c s p ( k ) ) 1 2 c s p ( k ) ] (A2.2)

The factors are evaluated once and written to a file. They are read from this file:

WRITEPRN ( " gamma_c_appr_sp .prn " ) = γ c _ a p p r _

γ c _ a p p r _ = REDPRN ( " gamma_c_appr_sp .prn " )

The factors are approaching a constant value:

γ c _ a p p r = γ c _ a p p r _ ( k l i m i t ) = 0.28313

as illustrated in Figure A2.1.

The approximating function is evaluated at sparse distances, respectively at the next smaller prime to these distances ( P ( n s p ( k ) ) < c s p ( k ) < P ( n s p ( k + 1 ) ) ) with (2.2).

They are evaluated as well at the square roots of these distances. The evaluation at the next smaller prime corresponding to each distance assures, that the evaluated numbers of the primes correspond exactly to the distances considered:

γ s e c _ a p p r ( k ) = γ s e c _ a p p r _ [ P [ π s p ( k ) ] ] ; γ s q r _ s e c _ a p p r _ [ P [ π s q r _ s p ( k ) ] ] (A2.3)

They are evaluated once and written to files. They are read from these files:

WRITEPRN ( " pr_sec_appr_sp_t .prn " ) = π s e c _ a p p r ;

π s p = REDPRN ( " index_distance sp .prn " )

WRITEPRN ( " pr_sqr_sec_appr_sp_t .prn " ) = π s q r _ s e c _ a p p r

π s q r _ s e c _ a p p r = REDPRN ( " pr_sqr_sec_appr_sp_t .prn " )

Figure A2.1. Relation of the error of the prime-number-formula to the square of the number of the series of multiples of primes, which are covering positions, over the distance.

Annex A3: Evaluation of the Factor of Correction of the First Simplification

The result of the first simplification (3.2) giving the sum over the sections of the density of primes has an error. This error is proportional to the number of primes up to ( c ). The error relative to ( π ( c ) ) results the factor of correction. Assuming the factor of correction ( γ s e c ) is constant over the distance (c), it may be evaluated as relation of the average error to the effective number of primes ( π ( c ) = π s p ( k ) ). The average error is:

Δ π s e c ( k ) = π s e c _ a p p r ( k ) π s p ( k ) ; Δ π s e c _ a v ( k ) = 1 k j = 1 k [ Δ π s e c ( k ) ] (A3.1)

The value of the factor of correction is herewith:

γ s e c ( c ) = Δ π s e c _ a v ( c ) π ( c ) ; γ s e c _ ( k ) = 2 Δ π s e c _ a v ( k ) π s q r _ s e c _ a p p r ( k ) ; γ s e c = γ s e c _ ( k . l i m i t ) = 0.036765 (A3.2)

Figure A3.1 shows the independence of the factor of correction ( γ s e c ) from the distance. The averaging process (A3.1) to evaluate the factor of correction is therefore justified. This factor ( γ s e c = 0.036765 ) is invariant, an inherent property of the prime numbers. It is important because it is applied in the recursive formula of the complete-prime-number-formula CPNF.

Figure A3.1. Convergence of the relation of the average relative error of the first simplification (3.2) to the final constant value ( γ s e c ).

Annex A4: Evaluation of the CPNF and the Error of the Second Simplification

The results of the CPNF are evaluated with (A1.1) once at sparse values of the distance ( c s p ( k ) ), written to a file are read from this file:

π a p p r ( k ) = π a p p r _ [ P [ π s p ( k ) ] ] (A4.1)

WRITEPRN ( " Pi_appr_sp .prn " ) = π a p p r ; π a p p r = REDPRN ( " Pi_appr sp .prn " )

Figure A4.1 indicates that the standard deviation of the dispersion of the effective number of primes around its approximation is rising proportionally to ( R ( c ) ), the number of the series of multiples of primes, which are covering integer positions at this distance (c). The dispersion of the evaluated values relative to the effective number of primes at ( c ) is about constant over the distances up to (c): There is no systematic error.

Figure A4.1. The relative dispersion of the difference between the effective number of primes and its value evaluated with the complete-prime-number-formula (CPNF) and the relation of the error of the PNF to ( R ( c ) 2 ).

Δ π a p p r _ r e l ( k ) = π a p p r ( k ) π s p ( k ) R e f f [ c s p ( k ) ] (A4.2)

With the results of the CPNF the factor of the proportionality ( γ c _ a p p r ) of the error of the PNF relative to the square of the number of primes present up to ( c ) evaluated in (A1.2) with (3.4), is reevaluated with the more exact difference as illustrated in Figure A4.1:

γ c ( c ) = π a p p r ( c ) S ( c ) R ( c ) 2 ; γ c ( k ) = π a p p r ( k ) S [ c s p ( k ) ] R [ c s p ( k ) ] 2 ; γ c = γ c _ ( k l i m i t ) = 0.28313 (A4.3)

Annex A5: Evaluation of the Standard Deviation of the Dispersion of the Effective Number of Primes around the CPNF

The standard deviation SD of the relative dispersion (4.5) is evaluated as follows:

S D Δ π _ a p p r _ r e l ( k ) = 1 k j = 1 k [ π a p p r ( j ) π s p ( j ) ] 2 R e f f [ c s p ( j ) ] 2 (A5.1)

The results are evaluated once and written to a file. They are read from this file:

WRITEPRN ( " SD_ Δ prime_sqr_appr_rel .prn " ) = S D Δ π _ a p p r _ r e l

S D Δ π _ a p p r _ r e l = REDPRN ( " SD_ Δ prime_sqr_appr_rel .prn " )

The average of the relation of the standard deviation converges to a final value, to the factor of proportionality (). This factor is evaluated as follows:

S D Δ π _ a p p r _ r e l _ a v ( k ) = 1 k j = 1 k S D Δ π _ a p p r _ r e l ( k ) (A5.2)

The results are evaluated once and written to a file. They are read from this file:

WRITEPRN ( " SD_ Δ prime_sqr_appr_rel_av .prn " ) = S D Δ π _ a p p r _ r e l _ a v

S D Δ π _ a p p r _ r e l _ a v = REDPRN ( " SD_ Δ prime_sqr_appr_rel_av .prn " )

The constant factor is equal to the final average value of the standard deviation at large distances. The figure below illustrates that the standard deviation is about constant over the distance. This fact rectifies taking the average over the whole distance for the evaluation:

F S D _ Δ π = S D Δ π _ a p p r _ r e l _ a v ( k l i m i t 1 ) = 0.160989 (A5.3)

Figure A5.1 indicates that the standard deviation of the dispersion of the effective number of primes around its approximation is rising proportionally to ( R ( c ) ), the number of the series of multiples of primes, which are covering integer positions at this distance (c). The factor of proportionality ( F S D _ Δ π ) is again an inherent property of the prime numbers.

Figure A5.1. Dispersion of the standard deviation of the dispersion of the number of primes around its average, the resulting constant value ( F S D _ Δ π )

Annex A6: Evaluation of the Constant of Integration and of the Dispersion of the Sum of the Inverse of the Primes around Its Approximation

The value of the constant ( γ P ) is evaluated the following way with the sum of the inverse of the primes:

π i n v e r s e ( n ) = p = 1 n 1 P ( p ) ; S s u m _ P _ i n v e r s e ( 0 ) = 1 ; S s u m _ P _ i n v e r s e ( n ) = S s u m _ P _ i n v e r s e ( n 1 ) + 1 P ( n ) (A6.1)

The results are evaluated once and written to a file. They are read from this file:

WRITEPRN ( " sum_prime_inverse .prn " ) = S s u m _ P _ i n v e r s e

S s u m _ P _ i n v e r s e = REDPRN ( " sum_prime_inverse .prn " )

The sum of the inverse of the primes gives for the largest prime considered ( P ( N P ) ) the value of the constant ( γ P ):

γ P = S s u m _ P _ i n v e r s e ( N P ) ln [ ln [ P ( N P ) ] ] = 1.261503 (A6.2)

For the graphical representation the evolution over the distance of the constant at sparse indexes is:

n n = 2 , 102 , , N P ; γ P _ ( n n ) = S s u m _ P _ i n v e r s e ( n n ) ln [ ln [ P ( n n ) ] ] (A6.3)

The value of the constant ( γ P ) converges in fact to a final value, as illustrated in the Figure A6.1 below.

Figure A6.1. The difference of the sum of the inverse of the primes and its approximation, resulting the constant of the integral.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Titchmarsh, E.C. (1986) The Theory of the Riemann Zeta-Function. Oxford University Press, New York.
[2] Doroszlai, P. and Keller, H. (2022) The Number of Primes. Advances in Pure Mathematics, 12, 81-95.
https://doi.org/10.4236/apm.2022.122008
[3] Doroszlai, P. and Keller, H. (2022) The Symmetric Series of Multiples of Primes. Advances in Pure Mathematics, 12, 160-177.
https://doi.org/10.4236/apm.2022.123014
[4] Hardy, G.H. and Littlewood, J.E. (1923) Some Problems of “Partitio Numerorum” III. On the Expression of a Number as a Sum of Primes. Acta Mathematica, 44, 1-70.
https://doi.org/10.1007/BF02403921

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.