Digital Library of Mathematical Functions
About the Project
NIST
27 Functions of Number TheoryMultiplicative Number Theory

§27.12 Asymptotic Formulas: Primes

p_{n} is the nth prime, beginning with p_{1}=2. \mathop{\pi\/}\nolimits\!\left(x\right) is the number of primes less than or equal to x.

27.12.1\lim_{{n\to\infty}}\frac{p_{n}}{n\mathop{\mathrm{log}\,\/}\nolimits n}=1,
27.12.2p_{n}>n\mathop{\mathrm{log}\,\/}\nolimits n,n=1,2,\dots.

where the series terminates when the product of the first r primes exceeds x.

Prime Number Theorem

There exists a positive constant c such that

For the logarithmic integral \mathop{\mathrm{li}\/}\nolimits\!\left(x\right) see (6.2.8). The best available asymptotic error estimate (2009) appears in Korobov (1958) and Vinogradov (1958): there exists a positive constant d such that

\mathop{\pi\/}\nolimits\!\left(x\right)-\mathop{\mathrm{li}\/}\nolimits\!\left%
(x\right) changes sign infinitely often as x\to\infty; see Littlewood (1914), Bays and Hudson (2000).

The Riemann hypothesis25.10(i)) is equivalent to the statement that for every x\geq 2657,

If a is relatively prime to the modulus m, then there are infinitely many primes congruent to a\;\;(\mathop{{\rm mod}}m).

The number of such primes not exceeding x is

where \lambda(\alpha) depends only on \alpha, and \mathop{\phi\/}\nolimits\!\left(m\right) is the Euler totient function (§27.2).

A Mersenne prime is a prime of the form 2^{p}-1. The largest known prime (2009) is the Mersenne prime 2^{{43,112,609}}-1. For current records see The Great Internet Mersenne Prime Search.

A pseudoprime test is a test that correctly identifies most composite numbers. For example, if 2^{n}\not\equiv 2\;\;(\mathop{{\rm mod}}n), then n is composite. Descriptions and comparisons of pseudoprime tests are given in Bressoud and Wagon (2000, §§2.4, 4.2, and 8.2) and Crandall and Pomerance (2005, §§3.4–3.6).

A Carmichael number is a composite number n for which b^{n}\equiv b\;\;(\mathop{{\rm mod}}n) for all b\in\NatNumber. There are infinitely many Carmichael numbers.