(where denotes the floor function). This number is therefore equal to
:
when the numbers are the prime numbers less than or equal to the square root of .
In a series of articles published between 1870 and 1885, Ernst Meissel described (and used) a practical combinatorial way of evaluating . Let , , …, be the first primes and denote by the number of natural numbers not greater than which are divisible by no . Then
:
Given a natural number , if and if , then
:
Using this approach, Meissel computed , for equal to 5×105, 106, 107, and 108.
In 1959, Derrick Henry Lehmer extended and simplified Meissel's method. Define, for real and for natural numbers , and , as the number of numbers not greater than "m" with exactly "k" prime factors, all greater than . Furthermore, set . Then
:
where the sum actually has only finitely many nonzero terms. Let denote an integer such that , and set . Then and when ≥ 3. Therefore
:
The computation of can be obtained this way:
:
On the other hand, the computation of can be done using the following rules:
#
#
Using his method and an IBM 701, Lehmer was able to compute .
Further improvements to this method were made by Lagarias, Miller, Odlyzko, Deléglise and Rivat [cite web |title=Computing π(x): The Meissel, Lehmer, Lagarias, Miller, Odlyzko method |url=http://www.ams.org/mcom/1996-65-213/S0025-5718-96-00674-6/S0025-5718-96-00674-6.pdf |publisher=Marc Deléglise and Jöel Rivat, "Mathematics of Computation", vol. 65, number 33, January 1996, pages 235–245 |accessdate=2008-09-14] .]The Chinese mathematician Hwang Cheng, in a conference about prime number functions at the University of Bordeaux[cite |author=Hwang H., Cheng |title=Démarches de la Géométrie et des Nombres de l'Université du Bordeaux |publisher="Prime Magic" conference |date=2001] , used the following identities:]:
:
and setting , Laplace-transforming both sides and applying a geometric sum on got the expression
: :
:
Other prime-counting functions
Other prime-counting functions are also used because they are more convenient to work with. One is Riemann's prime-counting function, usually denoted as . This has jumps of "1/n" for prime powers "p""n", with it taking a value half-way between the two sides at discontinuities. That added detail is because then it may be defined by an inverse Mellin transform. Formally, we may define by
:
where "p" is a prime.
We may also write
:
where Λ("n") is the von Mangoldt function and
:
Möbius inversion formula then gives
:
Knowing the relationship between log of the Riemann zeta function and the von Mangoldt function , and using the Perron formula we have
:
The Chebyshev function weights primes or prime powers "p""n" by ln("p"):
::
Formulas for prime-counting functions
These come in two kinds, arithmetic formulas and analytic formulas. The latter are what allow us to prove the prime number theorem. They stem from the work of Riemann and von Mangoldt, and are generally known as explicit formulas [cite book |first=E.C. |last=Titchmarsh |year=1960 |title=The Theory of Functions, 2nd ed. |publisher=Oxford University Press] .]We have the following expression for ψ:
:
where
:
Here ρ are the zeros of the Riemann zeta function in the critical strip, where the real part of ρ is between zero and one. The formula is valid for values of "x" greater than one, which is the region of interest. The sum over the roots is conditionally convergent, and should be taken in order of increasing absolute value of the imaginary part. Note that the same sum over the trivial roots gives the last subtrahend in the formula.
For we have a more complicated formula
:
Again, the formula is valid for "x" > 1, while ρ are the nontrivial zeros of the zeta function ordered according to their absolute value, and, again, the latter integral, taken with minus sign, is just the same sum, but over the trivial zeros. The first term li("x") is the usual logarithmic integral function; the expression li("x"ρ) in the second term should be considered as Ei(ρ ln "x"), where Ei is the analytic continuation of the exponential integral function from positive reals to the complex plane with branch cut along the negative reals.
Thus, Möbius inversion formula gives us
:
valid for "x" > 1, where
:
is so-called Riemann's R-function [MathWorld |title=Riemann Prime Counting Function |urlname=RiemannPrimeCountingFunction] . The latter series for it is known as Gram series ][MathWorld|title=Gram Series |urlname=GramSeries] and converges for all positive "x".]The sum over non-trivial zeta zeros in the formula for describes the fluctuations of , while the remaining terms give the "smooth" part of prime-counting function [cite web |title=The encoding of the prime distribution by the zeta zeros |url=http://www.secamlocal.ex.ac.uk/people/staff/mrwatkin/zeta/encoding1.htm |publisher=Matthew Watkins |accessdate=2008-09-14] , so one can use]:
as the [http://primefan.ru:8014/WWW/stuff/primes/best_estimator.gifbest estimator] of for "x" > 1.
The amplitude of the "noisy" part is heuristically about , so the fluctuations of the distribution of primes may be clearly represented with the Δ-function:
:
An extensive table of the values of Δ("x") is available .
Inequalities
Here are some useful inequalities for π("x").
: for x > 1.
: for x ≥ 55.
Here are some inequalities for the "n"th prime, "p""n".Fact|date=May 2008: for "n" ≥ 6.The left inequality holds for n ≥ 1 and the right inequality holds for n ≥ 6.
An approximation for the "n"th prime number is:
The Riemann hypothesis
The Riemann hypothesis is equivalent to a much tighter bound on the error in the estimate for , and hence to a more regular distribution of prime numbers,
:
Relation to prime sums
if we had a sum of a function over all primes : and we wish to accelerate its convergence we can write it as:
:
for the series on the left we could apply Euler transform for alternating series, providing that f(n)>f(n+1) and that the 2 series converges, it also relates an alternating series to its prime sum counterpart, the main task of using this is that we can give a good approximation using only a few values of the prime number counting function.
References
External links
*Chris Caldwell, [http://primes.utm.edu/nthprime/ "The Nth Prime Page"] at The Prime Pages.