{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $p$ run over the [[prime numbers|01826KMG2H]], let $\\log$ be the [[natural logarithm|04DXAFN2ES]], and let $x \\ge 2$ be real.\n\n1. $\\displaystyle \\sum_{p \\le x} \\frac{\\log p}{p} = \\log x + O(1)$.\n2. There is a constant $M$ such that $\\displaystyle \\sum_{p \\le x} \\frac{1}{p} = \\log \\log x + M + O\\!\\left(\\frac{1}{\\log x}\\right)$.\n3. $\\displaystyle \\prod_{p \\le x} \\left(1 - \\frac{1}{p}\\right) \\sim \\frac{e^{-\\gamma}}{\\log x}$ as $x \\to \\infty$, where $\\gamma$ is the [[Euler–Mascheroni constant|00C5P9JZBK]].\n\nHere $O$ is [[big O notation|0TGV80E6A4]] as $x \\to \\infty$, and $\\sim$ is [[asymptotic equivalence|0QR92XBV6H]].\n\n## Remarks\n\nFor the first theorem, compare two expressions of $\\log(n!)$.\nLegendre's formula gives $\\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 $\\psi(n) = O(n)$ of Chebyshev for the [[Chebyshev function|B8AKSVBE5Z]] $\\psi$.\n[[Stirling's formula|0KC0F51T6A]] gives $\\log(n!) = n \\log n + O(n)$, and dividing by $n$ gives the result.\nThe second theorem follows from the first by partial summation.\nThe third follows from the second by taking logarithms; identifying the constant $e^{-\\gamma}$ needs the behaviour of the [[Riemann zeta function|1XWBY4N0VT]] near $s = 1$.\nThe constant $M \\approx 0.2615$ is the Meissel–Mertens constant.\nThe theorems do not need the [[prime number theorem|0EHBY5Y84N]]; they are elementary.\n\n## Explanations\n\n### L1 human\n\nThe sum of the reciprocals of the primes diverges, but very slowly, like $\\log \\log x$.\nMertens' theorems give the precise size of this sum and of two related quantities.\nThe product $\\prod_{p \\le x} (1 - 1/p)$ is the proportion of integers that have no prime factor up to $x$, in a heuristic sense, and it decays like $e^{-\\gamma}/\\log x$.\n\n### L2 human\n\nThe theorems are typical of elementary prime number theory: they use only Chebyshev bounds and the factorization of $n!$.\nThe third theorem is used in sieve methods, where products over primes such as $\\prod_{p \\le z} (1 - 1/p)$ give the main term.\nA naive sieve heuristic with $z = \\sqrt{x}$ would predict about $2e^{-\\gamma} x/\\log x \\approx 1.12\\, x/\\log x$ primes up to $x$, while the prime number theorem gives $x/\\log x$.\nThe difference shows that divisibility by different large primes is not independent.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "about": [
      "01826KMG2H"
    ],
    "kind": "statement",
    "msc": [
      "11N05"
    ],
    "name": "Mertens' theorems",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q1196729",
      "wikipedia": "Mertens' theorems"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Mertens%27_theorems"
      }
    ],
    "tag": "7J3P1W042Y",
    "uses": [
      "01826KMG2H",
      "04DXAFN2ES",
      "00C5P9JZBK",
      "0TGV80E6A4",
      "0QR92XBV6H",
      "B8AKSVBE5Z"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/7J3P1W042Y/",
  "links": [
    {
      "field": "about",
      "target": "01826KMG2H"
    },
    {
      "field": "uses",
      "target": "01826KMG2H"
    },
    {
      "field": "uses",
      "target": "04DXAFN2ES"
    },
    {
      "field": "uses",
      "target": "00C5P9JZBK"
    },
    {
      "field": "uses",
      "target": "0TGV80E6A4"
    },
    {
      "field": "uses",
      "target": "0QR92XBV6H"
    },
    {
      "field": "uses",
      "target": "B8AKSVBE5Z"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/7J3P1W042Y.md",
  "msc": [
    "11N05"
  ],
  "name": "Mertens' theorems",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/7J3/7J3P1W042Y.md",
  "status": null,
  "tag": "7J3P1W042Y",
  "uri": "m2://7J3P1W042Y",
  "url": "https://math2.tamnd.com/wiki/mertens-theorems/",
  "writing": {
    "tag": "7J3P1W042Y",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
