27 Functions of Number TheoryMultiplicative Number Theory

§27.12 Asymptotic Formulas: Primes

pn is the nth prime, beginning with p1=2. π⁡(x) is the number of primes less than or equal to x.

27.12.1 limn→∞pnn⁢ln⁡n=1,
27.12.2 pn>n⁢ln⁡n,
n=1,2,….
27.12.3 π⁡(x)=⌊x⌋−1−∑pj≤x⌊xpj⌋+∑r≥2(−1)r⁢∑pj1<pj2<⋯<pjr≤x⌊xpj1⁢pj2⁢⋯⁢pjr⌋,
x≥1,

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

As x→∞

27.12.4 π⁡(x)∼∑k=1∞(k−1)!⁢x(ln⁡x)k.

Prime Number Theorem

There exists a positive constant c such that

27.12.5 |π⁡(x)−li⁡(x)|=O⁡(x⁢exp⁡(−c⁢(ln⁡x)1/2)),
x→∞.

For the logarithmic integral li⁡(x) 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

27.12.6 |π⁡(x)−li⁡(x)|=O⁡(x⁢exp⁡(−d⁢(ln⁡x)3/5⁢(ln⁡ln⁡x)−1/5)).

π⁡(x)−li⁡(x) changes sign infinitely often as x→∞; see Littlewood (1914), Bays and Hudson (2000).

The Riemann hypothesis (§25.10(i)) is equivalent to the statement that for every x≥2657,

27.12.7 |π⁡(x)−li⁡(x)|<18⁢π⁢x⁢ln⁡x.

If a is relatively prime to the modulus m, then there are infinitely many primes congruent to a(modm).

The number of such primes not exceeding x is

27.12.8 li⁡(x)ϕ⁡(m)+O⁡(x⁢exp⁡(−λ⁡(α)⁢(ln⁡x)1/2)),
m≤(ln⁡x)α, α>0,

where λ⁡(α) depends only on α, and ϕ⁡(m) is the Euler totient function (§27.2).

A Mersenne prime is a prime of the form 2p−1. The largest known prime (2018) is the Mersenne prime 282,589,933−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 2n⁢≡⁢2(modn), 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 bn≡b(modn) for all b∈ℕ. There are infinitely many Carmichael numbers.