A formula for primes in mathematics is a mathematical formula generating the prime numbers, exactly and without exception. No easily-computable such formula is known. A great deal is known about what, more precisely, such a "formula" can and cannot be.
It is known that no non-constant polynomial function P(n) exists that evaluates to a prime number for all integers n. The proof is simple: Suppose such a polynomial existed. Then P(1) would evaluate to a prime p, so . But for any k, also, so cannot also be prime (as it would be divisible by p) unless it were p itself, but the only way for all k is if the polynomial function is constant.
Using more algebraic number theory, one can show an even stronger result: no non-constant polynomial function P(n) exists that evaluates to a prime number for almost all integers n.
There are polynomials in several variables whose positive values as the variables range over all positive integers are exactly the primes. The first such polynomial discovered was the following polynomial in 26 variables of degree 25:
It is known that there is such a polynomial in only 10 variables (but with a very high degree).*
It is known, based on Dirichlet's theorem on arithmetic progressions, that linear polynomial functions produce infinitely many primes as long as a and b are relatively prime (though no such function will assume prime values for all values of n). It is not known, however, whether there exists a polynomial of degree greater than or equal to 2 that assumes an infinite number of values that are prime.
A set of Diophantine equations in 26 variables can be used to obtain primes: A given number k + 2 is prime iff. the following system of Diophantine equations has a solution in the natural numbers (Riesel, 1994):
A general theorem of Matiyasevich says that the range of every recursively enumerable function may be given by the solutions to a set of Diophantine equations in 9 variables, but in general of very high degree. This implies the existence of a set of Diophantine equations in 9 variables that has the same property as the above one. J.P. Jones showed that there also exists such a set of equations of degree only 4, but in 58 variables. *.
Using the floor function (defined to be the largest integer less than or equal to the real number x), one can construct several formulas for the nth prime.
The first such formula known was established in 1947 by W. H. Mills, who proved that there exists a real number A such that
is a prime number for all positive integers n. The smallest such A has a value of around 1.3094... and is known as Mills's constant. This formula has no practical value, because very little is known about the constant (not even whether it is rational), and there is no known way of calculating the constant without finding primes in the first place.
By using Wilson's theorem, we may generate several other formulas, given below. These formulas also have little practical value: most primality tests are far more efficient.
In general, we may define
These definitions are equivalent; π(m) is the number of primes less than or equal to m. The n-th prime number pn can then be written as
Another approach does not use factorials and Wilson's theorem, but also heavily employs the floor function (S. M. Ruiz 2000): first define
and then
The following function yields all the primes, and only primes, for non-negative integers n:
In the Proceedings of the Indian Academy of Sciences(Math. Sci.), Vol.92, No.1,September 1983 pp 49-52, an explicit formula for the (n+1)th Prime which is the same as nth Prime as n could be substituted for n+1 for a given integer. In other words, if one wants to find the 6th Prime Number, then the integer n=5. The paper also gives a formula for the (n+1)th Twin prime which is the same as the nth Twin Prime. Further, the paper gives formulae for number of Primes and Twin Primes less than any given Prime. The proof is written in a cumbersome format to avoid plagiarism and therefore it is difficult to follow. The following are the pages of the paper. http://www.ias.ac.in/jarch/mathsci/92/00000050.pdf http://www.ias.ac.in/jarch/mathsci/92/00000051.pdf http://www.ias.ac.in/jarch/mathsci/92/00000052.pdf http://www.ias.ac.in/jarch/mathsci/92/00000053.pdf http://www.ias.ac.in/jarch/mathsci/93/00000068.pdf
Even though the papers gives a formula for the number of Twin Primes less then a given Prime Pn, the Twin Pirme conjecture remains unsolved. The author Venu Atiyolil stopped research in Number Theory since the publication of the above paper and changed the field of interest. A hint, as to how to prove or disprove the twin Prime conjecture is mentioned in the paper.
J.P. Jones, Universal diophantine equation, Journal of Symbolic Logic 47 (1982), 549-571.
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Formula for primes".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world