{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $\\pi(x)$ be the [[prime-counting function|0XRJB5SSNE]], and let $\\ln$ be the natural logarithm.\nThen\n$$\\lim_{x \\to \\infty} \\frac{\\pi(x)}{x / \\ln x} = 1.$$\n\n## Remarks\n\nWe write this as $\\pi(x) \\sim x / \\ln x$.\nAn equivalent form: the $n$-th prime $p_n$ satisfies $p_n \\sim n \\ln n$.\nThe logarithmic integral $\\operatorname{li}(x) = \\int_2^x \\frac{dt}{\\ln t}$ gives a better approximation of $\\pi(x)$, with the same limit.\nFor example, $\\pi(10^6) = 78498$ and $10^6 / \\ln 10^6 \\approx 72382$.\n\n## History\n\nLegendre and Gauss conjectured the result from tables of primes, at the end of the 18th century.\nHadamard and de la Vallée Poussin proved it independently in 1896, with methods of complex analysis. Selberg and Erdős found elementary proofs in 1949.\n\n## Explanations\n\n### L1 human\n\nNear a large number $x$, about one number in $\\ln x$ is prime.\nFor numbers with $100$ digits, $\\ln x \\approx 230$, so about one number in $230$ is prime.\nThe theorem makes this rough rule precise.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "kind": "statement",
    "msc": [
      "11N05"
    ],
    "name": "Prime number theorem",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q386292",
      "wikipedia": "Prime number theorem"
    },
    "sources": [
      {
        "locator": "Statement",
        "url": "https://en.wikipedia.org/wiki/Prime_number_theorem"
      }
    ],
    "tag": "0EHBY5Y84N",
    "uses": [
      "0XRJB5SSNE"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0EHBY5Y84N/",
  "links": [
    {
      "field": "uses",
      "target": "0XRJB5SSNE"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0EHBY5Y84N.md",
  "msc": [
    "11N05"
  ],
  "name": "Prime number theorem",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0EH/0EHBY5Y84N.md",
  "status": null,
  "tag": "0EHBY5Y84N",
  "uri": "m2://0EHBY5Y84N",
  "url": "https://math2.tamnd.com/wiki/prime-number-theorem/",
  "writing": {
    "tag": "0EHBY5Y84N",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
