Math 2.0

Number theory Analytic number theory Theorem

Mertens' theorems

Builds on Prime numberNatural logarithmEuler–Mascheroni constantBig O notationAsymptotic equivalenceChebyshev functions

Statement

Let pp run over the prime numbers, let log⁡\log be the natural logarithm, and let x≥2x \ge 2 be real.

  1. ∑p≤xlog⁡pp=log⁡x+O(1)\displaystyle \sum_{p \le x} \frac{\log p}{p} = \log x + O(1).
  2. There is a constant MM such that ∑p≤x1p=log⁡log⁡x+M+O ⁣(1log⁡x)\displaystyle \sum_{p \le x} \frac{1}{p} = \log \log x + M + O\!\left(\frac{1}{\log x}\right).
  3. ∏p≤x(1−1p)∼e−γlog⁡x\displaystyle \prod_{p \le x} \left(1 - \frac{1}{p}\right) \sim \frac{e^{-\gamma}}{\log x} as x→∞x \to \infty, where γ\gamma is the Euler–Mascheroni constant.

Here OO is big O notation as x→∞x \to \infty, and ∼\sim is asymptotic equivalence.

Remarks

For the first theorem, compare two expressions of log⁡(n!)\log(n!). Legendre's formula gives log⁡(n!)=∑pk≤n⌊n/pk⌋log⁡p=n∑p≤nlog⁡pp+O(n)\log(n!) = \sum_{p^k \le n} \floor{n/p^k} \log p = n \sum_{p \le n} \frac{\log p}{p} + O(n), using the bound ψ(n)=O(n)\psi(n) = O(n) of Chebyshev for the Chebyshev function ψ\psi. Stirling's formula gives log⁡(n!)=nlog⁡n+O(n)\log(n!) = n \log n + O(n), and dividing by nn gives the result. The second theorem follows from the first by partial summation. The third follows from the second by taking logarithms; identifying the constant e−γe^{-\gamma} needs the behaviour of the Riemann zeta function near s=1s = 1. The constant M≈0.2615M \approx 0.2615 is the Meissel–Mertens constant. The theorems do not need the prime number theorem; they are elementary.

Going deeper

For a student

The theorems are typical of elementary prime number theory: they use only Chebyshev bounds and the factorization of n!n!. The third theorem is used in sieve methods, where products over primes such as ∏p≤z(1−1/p)\prod_{p \le z} (1 - 1/p) give the main term. A naive sieve heuristic with z=xz = \sqrt{x} would predict about 2e−γx/log⁡x≈1.12 x/log⁡x2e^{-\gamma} x/\log x \approx 1.12\, x/\log x primes up to xx, while the prime number theorem gives x/log⁡xx/\log x. The difference shows that divisibility by different large primes is not independent.

Reading path

To understand this page from the ground up, read these 76 pages in order. The foundations come first.

  1. Asymptotic equivalence concept
  2. Big O notation definition
  3. Big O notation concept
  4. Chebyshev functions concept
  5. Harmonic number definition
  6. Limit point of a set definition
  7. Local maximum definition
  8. Natural logarithm concept
  9. Partition of an interval definition
  10. Prime number concept
  11. Sequence definition
  12. Strictly monotone function definition
  13. Little o notation definition
  14. Limit of a function definition
  15. Local minimum definition
  16. Mesh of a partition definition
  17. Riemann sum definition
  18. Real sequence definition
  19. Subsequence definition
  20. Asymptotic equivalence definition
  21. Continuity at a point definition
  22. Derivative definition
  23. One-sided limit definition
  24. Riemann integrable function definition
  25. Bounded sequence definition
  26. Geometric sequence definition
  27. Limit of a sequence definition
  28. Monotone sequence definition
  29. Series definition
  30. Continuous function definition
  31. Epsilon-delta definition of continuity statement
  32. Fermat's theorem on stationary points statement
  33. Sum of a finite geometric series statement
  34. Monotone convergence theorem for sequences statement
  35. Convergent sequence definition
  36. Every sequence has a monotone subsequence statement
  37. Squeeze theorem statement
  38. Cauchy product definition
  39. Partial sum definition
  40. Power series definition
  41. Intermediate value theorem statement
  42. Composition of continuous functions is continuous statement
  43. One-sided limits of a monotone function exist statement
  44. Bolzano–Weierstrass theorem statement
  45. The sequence r^n tends to zero for |r| < 1 example
  46. Radius of convergence definition
  47. Convergent series definition
  48. Boundedness theorem statement
  49. Chain rule statement
  50. Continuity of the inverse of a strictly monotone continuous function statement
  51. A series of nonnegative terms converges iff its partial sums are bounded statement
  52. Absolute convergence definition
  53. Sum of a series definition
  54. Extreme value theorem statement
  55. Derivative of an inverse function statement
  56. Comparison test statement
  57. Geometric series example
  58. Cauchy product of absolutely convergent series statement
  59. Rolle's theorem statement
  60. Ratio test statement
  61. Mean value theorem statement
  62. Ratio formula for the radius of convergence statement
  63. Second fundamental theorem of calculus statement
  64. The exponential series has infinite radius of convergence statement
  65. A function with positive derivative is strictly increasing statement
  66. Exponential function definition
  67. Exponential of a sum statement
  68. The exponential function is positive statement
  69. The exponential function is its own derivative statement
  70. The exponential function is strictly increasing statement
  71. Natural logarithm definition
  72. Derivative of the logarithm statement
  73. Integral of 1/x statement
  74. Harmonic numbers grow like log n statement
  75. Euler–Mascheroni constant object
  76. Mertens' theorems statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Mertens%27_theorems
About this page
Tag7J3P1W042Y
URIm2://7J3P1W042Y
Kindstatement, theorem
WritingW0 stub
MSC11N05
StatusThis copy of the site has no build data. Run m2 status 7J3P1W042Y.
AboutPrime number
UsesPrime number, Natural logarithm, Euler–Mascheroni constant, Big O notation, Asymptotic equivalence, Chebyshev functions
Same as
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.