Generation and Distribution of Prime Numbers Using a Modified Lagrange Polynomial
Dileep Sivaraman, Branesh M. Pillai, Jackrit Suthakorn, Songpol Ongwattanakul
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 $Π_{n} =2Π_{n-1} - Π_{n-2} \pm 2 \ \ \forall \ Π_{n} >7$. where $Π_{n-1}$ and $Π_{n-2}$ are the consecutive primes.
