Prime counting function
In mathematics, the prime counting function is the function counting the number of prime numbers less than or equal to some real number x. It is written as ,[1] but it is not related to the number π. Some key values of the function include , and .
In general, if stands for the n-th prime number, then .[2]
History
Of great interest in number theory is the growth rate of the prime-counting function. It was conjectured in the end of the 18th century by Gauss and by Legendre to be approximately
where log is the natural logarithm, in the sense that
This statement is the prime number theorem. An equivalent statement is
where li is the logarithmic integral function. The prime number theorem was first proved in 1896 by Jacques Hadamard and by Charles de la Vallée Poussin independently, using properties of the Riemann zeta function introduced by Riemann in 1859. Proofs of the prime number theorem not using the zeta function or complex analysis were found around 1948 by Atle Selberg and by Paul Erdős (for the most part independently).[3]
Algorithms for evaluating π(x)
A simple way to find , if is not too large, is to use the sieve of Eratosthenes to produce the primes less than or equal to and then to count them.
A more elaborate way of finding is due to Legendre (using the inclusion–exclusion principle): given , if are distinct prime numbers, then the number of integers less than or equal to which are divisible by no is
(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 .
Related pages
References
- ↑ "Comprehensive List of Algebra Symbols". Math Vault. 2020-03-25. Retrieved 2020-10-07.
- ↑ Weisstein, Eric W. "Prime Counting Function". mathworld.wolfram.com. Retrieved 2020-10-07.
- ↑ Ireland, Kenneth; Rosen, Michael (1998). A Classical Introduction to Modern Number Theory (Second ed.). Springer. ISBN 0-387-97329-X.