Preprint
Article

This version is not peer-reviewed.

An Asymptotic Approach to Twin Primes in a Prime-Dependent Interval

Submitted:

08 March 2025

Posted:

10 March 2025

You are already at the latest version

Abstract

The Twin Prime Conjecture is a hypothesis that asserts the existence of infinitely many prime pairs of the form (p, p + 2) and is considered one of the most longstanding open problems in analytic number theory. In this study, we present a new approach to proving the infinitude of twin primes by examining specific prime number intervals. In particular, we demonstrate that there must be at least one twin prime pair within the interval (pkpk+1, p2k+1). First, we prove that there is at least one prime in this interval using the Prime Counting Function, and then we establish that there are at least two primes. Subsequently, by employing the Hardy-Littlewood estimate and the Montgomery-Vaughan relations, we mathematically prove that at least one of these primes must form a twin prime pair. Additionally, we analyze the error term in this study, showing that the ratio of the error term to the main integral approaches zero, thereby ensuring the robustness of the obtained result.

Keywords: 
;  ;  ;  ;  ;  

1. Introduction

The distribution of prime numbers has been one of the most fundamental and challenging problems in analytic number theory. Understanding the behavior of prime numbers is of great importance not only for theoretical mathematics but also for modern cryptography and computer science [1,2].
In particular, the question of whether there are infinitely many prime pairs of the form ( p , p + 2 ) , known as twin primes, has remained unsolved for nearly two centuries [3,4]. The Twin Prime Conjecture, which asserts the existence of infinitely many twin prime pairs, is one of the most famous unproven hypotheses.
In this study, we asymptotically analyze specific prime intervals to prove the infinitude of twin primes and demonstrate that at least one twin prime must exist within these intervals.
Specifically, the interval ( p k · p k + 1 , p k + 1 2 ) has been chosen for analysis due to previous studies on the subject [5].

2. Methods

Definition 1. (Prime Counting Function)
π ( x ) = It is the number of prime numbers up to x.
The following formula is known for the distribution of prime numbers:
π ( x ) x log x
Definition 2. (Twin Prime Counting Function)
π 2 ( x ) = It is the number of twin prime numbers up to x.
Hardy-Littlewood twin prime estimate:
π 2 ( x ) 2 C 2 2 x d t ( log t ) 2
C 2 is a constant and is calculated as follows:
C 2 = p 3 1 1 ( p 1 ) 2
This is approximately:
C 2 0.6601618
Definition 3. (Montgomery-Vaughan inequalities.)
Montgomery and Vaughan developed a powerful asymptotic relation that examines the distribution of prime numbers in specific intervals, particularly useful for predicting the average density of twin prime pairs.
Montgomery-Vaughan inequalities:
n x ( π ( n + 2 ) π ( n ) ) x log 2 x

3. Theorems and Proofs

Lemma 1. There is at least one prime number in the interval ( p k · p k + 1 , p k + 1 2 ) .
Proof. According to the Prime Number Theorem:
π ( x ) x log x
The number of prime numbers in this interval is:
π ( p k + 1 2 ) π ( p k p k + 1 )
Approximately:
π ( p k + 1 2 ) p k + 1 2 2 log p k + 1 , π ( p k p k + 1 ) p k p k + 1 log p k + log p k + 1
Hence:
π ( p k + 1 2 ) π ( p k p k + 1 ) p k + 1 2 2 log p k + 1 p k p k + 1 log p k + log p k + 1
By showing that this is 1 , we can prove that there is at least one prime:
p k + 1 2 2 log p k + 1 1 + p k p k + 1 2 log p k + 1
p k + 1 2 p k p k + 1 2 log p k + 1 1
In this case, we must examine the following expression to verify the inequality:
p k + 1 2 p k p k + 1 2 log p k + 1
It is evident that this expression is true.
Lemma 2. There are at least two prime numbers in the interval ( p k · p k + 1 , p k + 1 2 ) .
Proof. Based on Lemma 1, we can obtain the following expression:
p k + 1 2 2 log p k + 1 2 + p k p k + 1 2 log p k + 1
Therefore:
p k + 1 2 p k p k + 1 2 log p k + 1 2
As a result:
p k + 1 2 p k p k + 1 4 log p k + 1
It is also evident that this expression is true.
Theorem 1.
k , there is at least one twin prime pair in the interval ( p k · p k + 1 , p k + 1 2 ) .
Propositon 1. We obtain the same expression using the Hardy-Littlewood and Montgomery-Vaughan relations.
Proof. Using the Hardy-Littlewood formula, we obtain the following expression for the interval we have defined:
π 2 ( p k + 1 2 ) π 2 ( p k · p k + 1 ) 2 C 2 p k · p k + 1 p k + 1 2 d t ( log t ) 2
Similarly, by using the Montgomery-Vaughan relations, we can obtain the same expression:
n = p k · p k + 1 p k + 1 2 ( π ( n + 2 ) π ( n ) ) p k · p k + 1 p k + 1 2 d t log 2 t
Proposition 2. The ratio of the error term to the integral converges to 0 for the obtained expression.
Proof. The Hardy-Littlewood formula, including the error term, is expressed as follows:
π 2 ( x ) = 2 C 2 2 x d t ( log t ) 2 + O x ( log x ) 3
The error term here is:
H 1 ( x ) = O x log 3 x
The Montgomery-Vaughan formula, including the error term, is expressed as follows:
n = a b ( π ( n + 2 ) π ( n ) ) = a b d t log 2 t + O b log 3 b
The error term here is:
H 2 ( b ) = O b log 3 b
Let us recall our integral:
I k = p k p k + 1 p k + 1 2 d t log 2 t
To calculate the error term, let’s compute the integral approximately:
a b d t ( log t ) 2 b a ( log b ) 2
I k p k + 1 2 p k p k + 1 ( log p k + 1 2 ) 2
Here,
log ( p k + 1 2 ) = 2 log p k + 1
( log p k + 1 2 ) 2 = ( 2 log p k + 1 ) 2 = 4 log 2 p k + 1
Therefore:
I k p k + 1 2 p k p k + 1 4 log 2 p k + 1
To simplify further:
p k k log k
From here:
p k + 1 p k = O ( p k )
p k + 1 2 p k p k + 1 = p k + 1 ( p k + 1 p k )
= p k + 1 O ( p k )
p k + 1 2 p k p k + 1 O ( p k + 1 p k )
Therefore, our integral is:
I k p k + 1 p k 4 log 2 p k + 1
The error term is:
H k = O p k + 1 p k 4 log 3 p k + 1
To determine whether the error term can be neglected in the integral calculation, we need to compute the ratio of the error term to the integral:
H k I k = O p k + 1 p k 4 log 3 p k + 1 p k + 1 p k 4 log 2 p k + 1
H k I k = O 1 log p k + 1
Since we are doing asymptotic analysis, we need to look at the limit at infinity:
lim p k + 1 H k I k = 0
As a result, the error term can be neglected.
Proposition 3. The value of the integral is greater than or equal to 1.
Proof. At this stage, we need to calculate the integral in more detail.
I k = p k · p k + 1 p k + 1 2 d t log 2 t
According to prime number theory:
p k k log k
p k p k + 1 ( k log k ) · ( ( k + 1 ) log ( k + 1 ) )
p k + 1 2 ( k + 1 ) 2 log 2 ( k + 1 )
log ( p k p k + 1 ) log k + log ( k + 1 ) + log log k + log log ( k + 1 )
log ( p k + 1 2 ) 2 ( log ( k + 1 ) + log log ( k + 1 ) )
We can express the integral as follows:
I k log ( p k p k + 1 ) log ( p k + 1 2 ) e u d u u 2
e u u 2 d u e u u 2
Hence:
I k e u u 2 log ( p k p k + 1 ) log ( p k + 1 2 )
Here, the upper limit will be as follows:
p k + 1 2 ( 2 log ( k + 1 ) ) 2
The lower limit will be as follows:
p k p k + 1 ( log k log ( k + 1 ) ) 2
Therefore, the integral becomes:
I k p k + 1 2 ( 2 log ( k + 1 ) ) 2 p k p k + 1 ( log k log ( k + 1 ) ) 2
The proposition is true if the following condition is satisfied:
p k + 1 2 ( 2 log p k + 1 ) 2 1 + p k p k + 1 ( log p k + log p k + 1 ) 2
For this reason, the following expression must be incorrect:
p k + 1 2 ( 2 log p k + 1 ) 2 < 1
Again, according to prime number theory:
p k + 1 p k + O ( p k )
log p k log p k + 1
log p k + log p k + 1 2 log p k + 1
Thence:
p k p k + 1 ( 2 log p k + 1 ) 2
= p k p k + 1 4 ( log p k + 1 ) 2
The following expression can be formed:
p k p k + 1 < p k + 1 2
From here:
p k p k + 1 4 ( log p k + 1 ) 2 < p k + 1 2 4 ( log p k + 1 ) 2
Hence:
p k + 1 2 4 ( log p k + 1 ) 2 1 + p k p k + 1 4 ( log p k + 1 ) 2
Then:
p k + 1 2 p k p k + 1 4 ( log p k + 1 ) 2 1
For this reason:
p k + 1 2 p k p k + 1 4 ( log p k + 1 ) 2
It is evident that this expression is true.
As a result:
p k + 1 2 ( 2 log p k + 1 ) 2 1 + p k p k + 1 ( log p k + log p k + 1 ) 2
This situation can also be demonstrated using a limit. The limit expression will be as follows:
lim p k p k + 1 2 ( 2 log p k + 1 ) 2 1 + p k p k + 1 ( log p k + log p k + 1 ) 2
From here, it is easy to conclude:
lim p k p k + 1 2 ( 2 log p k + 1 ) 2 1 + p k p k + 1 ( log p k + log p k + 1 ) 2 0
Corollaries 1. Proposition 3 naturally shows that there must be at least one twin prime pair in the asymptotic interval. This completes the proof of Theorem 1.

4. Results

Firstly, we showed that there must be at least one prime number in the interval ( p k p k + 1 , p k + 1 2 ) .
We used the asymptotic formula of the prime counting function to obtain this result:
π ( x ) x log x
According to this relation, the number of prime numbers in the specified interval was calculated as follows:
π ( p k + 1 2 ) π ( p k p k + 1 ) p k + 1 2 2 log p k + 1 p k p k + 1 log p k + log p k + 1
From here, it was shown that this difference is greater than or equal to 1, meaning that there must be at least one prime number in this interval. Secondly, we demonstrated that there must be at least two primes in the specified interval.
Finally, we showed that one of the at least two prime numbers in the interval must necessarily be a twin prime.
At this stage, the Hardy-Littlewood twin prime conjecture was used in the following form:
π 2 ( p k + 1 2 ) π 2 ( p k p k + 1 ) 2 C 2 p k p k + 1 p k + 1 2 d t ( log t ) 2
The result of this integral is always greater than 1 for large values of k. This proves that there must be at least one twin prime pair in every specified interval.
One of the most important points in this study was the analysis of the error term.
By denoting the error term as H k and the integral value as I k , we showed that the error term converges to zero proportionally:
lim p k + 1 H k I k = 0

5. Discussion

This study presents a systematic approach to proving the infinitude of twin primes. Our work provides a fresh perspective by directly analyzing the existence of twin primes in specified prime number intervals.
By using the Hardy-Littlewood twin prime conjecture and Montgomery-Vaughan relations directly within an analytical framework, we obtained definitive results. Specifically, by driving the limit of the error term to zero, we controlled the error margin, thus providing a mathematically rigorous proof rather than a probabilistic or heuristic estimate.
The results obtained not only apply to twin primes but could also facilitate similar analyses for other prime pairs such as ( p , p + 4 ) , ( p , p + 6 ) , and others. Moreover, this could contribute to the development of new approaches to the Riemann hypothesis and the broader distribution of prime numbers.
The distribution of twin primes is significant not only in theoretical mathematics but also in cryptography and computer science. The RSA algorithm relies on the difficulty of factoring large prime numbers. A better understanding of twin prime distribution could allow for the more efficient selection of prime numbers. Understanding the density of large primes in certain intervals could optimize random prime generation methods for cryptographic security. Determining the exact distribution of twin primes could lead to the development of faster and more effective algorithms for discovering prime numbers.
referencias.bib

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Acknowledgments

Not applicable.

References

  1. Fernando Peralta Castr. The Evolution of Cryptography through Number Theor arXiv 2024.
  2. Mohan Satvik Adusumalli. A study of the importance of prime numbers in cryptographic algorithms IJUSE 2000, 10, 1–10.
  3. Harvey Dubner. Twin prime conjectures Journal Abbreviation 2000, 30, 199–205.
  4. Sadegh Nazardonyavi. Some history about twin prime conjecture arXiv 2012.
  5. Ahmet, F. Gocge. Gocgen Approach for Bounded Gaps Between Odd Composite Numbers Preprints 2024. [Google Scholar]
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2025 MDPI (Basel, Switzerland) unless otherwise stated