Formula for primes
Encyclopedia : F : FO : FOR : Formula for primes
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.
- 1 Prime formulas and polynomial functions
- 2 Formula based on a system of Diophantine equations
- 3 Formulas using the floor function
- 3.1 Mills's formula
- 3.2 Floor function formulas based on Wilson's theorem
- 3.3 Another approach using the floor function
- 4 Other formulas
- 5 Formula for twin primes
- 6 References
- 7 External links
Prime formulas and polynomial functions
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 [P(1) \equiv 0 \pmod p]. But for any k, [P(1+kp) \equiv 0 \pmod p] also, so [P(1+kp)] cannot also be prime (as it would be divisible by p) unless it were p itself, but the only way [P(1+kp) = P(1)] 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.
The quadratic polynomial
- P(n) = n2 + n + 41
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:
- [(k + 2)(1 - (wz + h + j - q)^2 - ((gk + 2g + k + 1)(h + j) + h - z)^2 - (2n + p + q + z - e)^2 - (16(k + 1)^3 (k + 2)(n + 1)^2 + 1 - f^2)^2 - (e^3(e + 2)(a + 1)^2 + 1 - o^2)^2 - ((a^2 - 1)y^2 + 1 - x^2)^2 - (16r^2y^4(a^2 - 1) + 1 - u^2)^2 - (((a + u^2(u^2 - a))^2 - 1)(n + 4dy)^2 + 1 - (x + cu)^2)^2 - (n + l + v - y)^2 - ((a^2 - 1)l^2 + 1 - m^2)^2 - (ai + k + 1 - l - i)^2 - (p + l(a - n - 1) + b(2an + 2a - n^2 - 2n - 2) - m)^2 - (q + y(a - p - 1) + s(2ap + 2a + p^2 - 2p - 2) - x)^2 - (z + pl(a - p) + t(2ap - p^2 - 1) - pm)^2)]
It is known, based on Dirichlet's theorem on arithmetic progressions, that linear polynomial functions [L(n) = an + b] 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.
Formula based on a system of Diophantine equations
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):
- [0 = wz + h + j - q]
- [0 = (gk + 2g + k + 1)(h + j) + h - z]
- [0 = 16(k + 1)^3(k + 2)(n + 1)^2 + 1 - f^2]
- [0 = 2n + p + q + z - e]
- [0 = e^3(e + 2)(a + 1)^2 + 1 - o^2]
- [0 = (a^2 - 1)y^2 + 1 - x^2]
- [0 = 16r^2y^4(a^2 - 1) + 1 - u^2]
- [0 = n + l + v - y]
- [0 = (a^2 - 1)l^2 + 1 - m^2]
- [0 = ai + k + 1 - l - i]
- [0 = ((a + u^2(u^2 - a))^2 - 1)(n + 4dy)^2 + 1 - (x + cu)^2]
- [0 = p + l(a - n - 1) + b(2an + 2a - n^2 - 2n - 2) - m]
- [0 = q + y(a - p - 1) + s(2ap + 2p - p^2 - 2p - 2) - x]
- [0 = z + pl(a - p) + t(2ap - p^2 - 1) - pm.]
Formulas using the floor function
Using the floor function [\lfloor x\rfloor] (defined to be the largest integer less than or equal to the real number x), one can construct several formulas for the nth prime.
Mills's formula
The first such formula known was established in 1947 by W. H. Mills, who proved that there exists a real number A such that
- [\lfloor A^}\;\rfloor]
Floor function formulas based on Wilson's theorem
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
- [\pi(m) = \sum_^m \frac (j-1)!^2 ) } ) }]
- [ \pi(m) = \sum_^m \left\lfloor - \left\lfloor\right\rfloor \right\rfloor. ]
- [p_n = 1 + \sum_^ \left\lfloor \left\lfloor \right\rfloor^ \right\rfloor.]
Another approach using the floor function
Another approach does not use factorials and Wilson's theorem, but also heavily employs the floor function (S. M. Ruiz 2000): first define
- [\pi(k) = k - 1 + \sum_^k \left\lfloor \left(1 + \sum_^\right\rfloor} \left(\left\lfloor\right\rfloor - \left\lfloor\right\rfloor\right) \right)\right\rfloor ]
- [p_n = 1 + \sum_^ \left(1 - \left\lfloor \right\rfloor\right). ]
Other formulas
The following function yields all the primes, and only primes, for non-negative integers n:
- [f(n) = 2 + (2n! \,\operatorname (n+1)).]
Formula for twin primes
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.
References
J.P. Jones, Hideo Wada, Daihachiro Sato and Douglas Wiens, Diophantine representation of the set of prime numbers, Amer. Math. Monthly 83 (1976), 449-464.J.P. Jones, Universal diophantine equation, Journal of Symbolic Logic 47 (1982), 549-571.
External links
- Sebastian Martin-Ruiz Prime Formulas http://www.primepuzzles.net/problems/prob_038.htm
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
