Revision as of 23:41, 28 December 2004 edit68.154.65.92 (talk)No edit summary← Previous edit | Revision as of 23:41, 28 December 2004 edit undo68.154.65.92 (talk)No edit summaryNext edit → | ||
Line 9: | Line 9: | ||
:<math>\pi(x)\approx\frac{x}{\ln(x)}</math> | :<math>\pi(x)\approx\frac{x}{\ln(x)}</math> | ||
which lead to the relation known as the ] where an important figure in the history before Riemann is ] who used the ] ], which Riemann expanded into the ] by ] to get the ]. | which lead to the relation known as the ] where an important figure in the history before Riemann is ] who used the ] ], which Riemann expanded into the ] by ] to get the ]. | ||
One compact method for actually counting primes is the following ]: | One compact method for actually counting primes is the following ]: |
Revision as of 23:41, 28 December 2004
In mathematics, a prime-counting function is any of many methods that count prime numbers.
Historically there are several such methods. Traditionally the prime counting function is given as , for instance, as there are 168 primes up to 1000.
Prime counting itself has been eclipsed by research on the Riemann Hypothesis formulated by Bernhard Riemann.
His work was a continuation of research relating prime numbers to continuous functions that included important figures like Carl Friedrich Gauss who along with others noticed that
which lead to the relation known as the prime number theorem where an important figure in the history before Riemann is Pafnuty Chebyshev who used the Euler zeta function, which Riemann expanded into the complex plane by analytic continuation to get the Riemann zeta function.
One compact method for actually counting primes is the following recursive function:
With natural numbers x and y, if then
else .
Here gives the count of prime numbers.
The method relies on the inclusion-exclusion principle as well as a few other ideas, and bears remarkable similarities to other less compactly represented prime counting functions, like Legendre's Formula discovered by the French mathematicians Adrien-Marie Legendre and Meissel's Formula discovered by the German mathematician Ernst Meissel.
The discrete summation is of a partial difference equation with the constraint that .
The method finds prime numbers as it recurses, and far faster algorithms can be developed from it by instead using a sieve like the Sieve of Eratosthenes to get the prime numbers up to versus letting the formula find them.
Some values calculated for this article from one such algorithm:
4 | |
25 | |
168 | |
1229 | |
9592 | |
78498 | |
664579 | |
5761455 | |
50847534 | |
455052511 | |
4118054813 | |
37607912018 |
See also: floor function
This article is a stub. You can help Misplaced Pages by expanding it. |