Generation and Distribution of Prime Numbers Using a Modified Lagrange Polynomial

Dileep Sivaraman,Branesh M. Pillai,Jackrit Suthakorn,Songpol Ongwattanakul
2023-10-17
Abstract:A modified Lagrange Polynomial is introduced for polynomial extrapolation, which can be used to estimate the equally spaced values of a polynomial function. As an example of its application, this article presents a prime-generating algorithm based on a 1-degree polynomial that can generate prime numbers from consecutive primes. The algorithm is based on the condition that infinitely many prime numbers exist that satisfy the equation $\Pi_{n} =2\Pi_{n-1} - \Pi_{n-2} \pm 2 \ \ \forall \ \Pi_{n} >7$. where $\Pi_{n-1}$ and $\Pi_{n-2}$ are the consecutive primes.
General Mathematics
What problem does this paper attempt to address?
The paper attempts to address the following issues: 1. **Proposing a new polynomial extrapolation method**: The paper introduces a new method called "Special Addition in Polynomials" (SAP), which is an improved Lagrange polynomial that can approximate a given dataset based on a series of previous values. Unlike traditional Lagrange interpolation or Newton's difference method, this method does not require specific \(x_i\) values when determining the next function value. 2. **Algorithm for generating prime numbers**: Based on the aforementioned method, the paper proposes a prime number generation algorithm based on first-order polynomials, which can generate new primes from consecutive primes. The algorithm is based on the condition: there are infinitely many primes satisfying \(\Pi_n = 2\Pi_{n-1} - \Pi_{n-2} \pm 2\), where \(\Pi_{n-1}\) and \(\Pi_{n-2}\) are consecutive primes. 3. **Statistical verification of prime distribution**: The generated primes are statistically analyzed using MATLAB scripts and compared with the standard prime distribution to verify the effectiveness of the algorithm. The results show that the distribution of the generated primes differs from the standard prime distribution, and the generated primes may be unevenly distributed. 4. **Analysis of prime gaps**: The differences between consecutive primes are studied, and it is found that these differences exhibit certain patterns, with most differences being small, but some larger gaps exist. 5. **Study of twin primes**: The proposed condition is used to generate twin primes, and their distribution characteristics are analyzed. The results show that twin primes cluster in certain regions and are more dispersed in others.