Learn/Number Theory/Prime Number Theorem
Number Theory • Topic 30

Prime Number Theorem

The Prime Number Theorem (PNT) describes the asymptotic distribution of prime numbers. It answers "how dense" the primes are.

The Prime Counting Function

Let be the number of primes less than or equal to .

Statement

Theorem (Prime Number Theorem)
As :
Meaning:

Logarithmic Integral

A better approximation is given by the logarithmic integral function:

Implications

  1. Probability: The probability that a random integer is prime is roughly .
  2. n-th Prime: The -th prime number is approximately .

Bertrand's Postulate

A related, concrete bound: For every integer , there is always a prime such that:

Practice Problems

Exercise (Problem 1)
Estimate the number of primes less than 1,000,000 using PNT.
Exercise (Problem 2)
Use Bertrand's Postulate to prove that is not a perfect power for .
Exercise (Problem 3)
Prove that .