{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nFor an integer $n \\ge 1$, let $\\omega(n)$ be the [[number of distinct prime factors|08RQ62VAVA]] of $n$, and let $\\log$ be the [[natural logarithm|04DXAFN2ES]].\nFor all real numbers $a \u003c b$,\n$$\\lim_{x \\to \\infty} \\frac{1}{x}\\, \\#\\set{3 \\le n \\le x : a \\le \\frac{\\omega(n) - \\log\\log n}{\\sqrt{\\log\\log n}} \\le b} = \\frac{1}{\\sqrt{2\\pi}} \\int_{a}^{b} e^{-t^2/2}\\, dt.$$\n\n## Remarks\n\nIn words, $\\omega(n)$ has an approximately [[normal distribution|05AQE0QR0D]] with mean and variance $\\log\\log n$.\nA heuristic proof: $\\omega(n) = \\sum_{p \\le n} \\mathbf{1}_{p \\mid n}$, and for a random $n$ the events $p \\mid n$ have probability $1/p$ and are nearly independent, so the central limit theorem applies with variance $\\sum_{p \\le x} 1/p \\approx \\log\\log x$.\nA rigorous proof restricts to small primes, shows near independence with a sieve, and compares moments with those of the normal law.\nThe earlier theorem of Hardy and Ramanujan says that $\\omega(n)$ has normal order $\\log\\log n$: for every $\\varepsilon \u003e 0$, almost all $n$ satisfy $\\abs{\\omega(n) - \\log\\log n} \u003c \\varepsilon \\log\\log n$.\nSince $\\log\\log n$ grows very slowly, the limit is reached slowly; for $n$ near $10^{9}$, $\\log\\log n \\approx 3$.\n\n## Explanations\n\n### L1 human\n\nPick a large number at random and count its different prime factors.\nThe theorem says the count behaves like a bell curve: its average is about $\\log\\log n$, and the spread is about $\\sqrt{\\log\\log n}$.\nSo most numbers have roughly $\\log\\log n$ prime factors, which is a very small number even for huge $n$.\n\n### L2 human\n\nThe Erdős–Kac theorem is the founding result of probabilistic number theory.\nIt treats the indicators of divisibility by different primes as almost independent random variables, and turns this into a [[central limit theorem|0EPZC4Z1FC]] for the additive function $\\omega$.\nThe same holds for $\\Omega(n)$, the number of prime factors counted with multiplicity, and more generally for many additive functions.\nIt sharpens the Hardy–Ramanujan normal order result, which gives only the center and not the shape of the distribution.\n",
  "commit": "5fc425f97f1f6b11da5892c2948ef8c5d8805665",
  "front": {
    "about": [
      "08RQ62VAVA"
    ],
    "kind": "statement",
    "msc": [
      "11N60",
      "11K65"
    ],
    "name": "Erdős–Kac theorem",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q846840",
      "wikipedia": "Erdős–Kac theorem"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Erdős–Kac_theorem"
      }
    ],
    "tag": "BY5WRND0J1",
    "uses": [
      "08RQ62VAVA",
      "05AQE0QR0D",
      "04DXAFN2ES",
      "0EPZC4Z1FC"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/BY5WRND0J1/",
  "links": [
    {
      "field": "about",
      "target": "08RQ62VAVA"
    },
    {
      "field": "uses",
      "target": "08RQ62VAVA"
    },
    {
      "field": "uses",
      "target": "05AQE0QR0D"
    },
    {
      "field": "uses",
      "target": "04DXAFN2ES"
    },
    {
      "field": "uses",
      "target": "0EPZC4Z1FC"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/BY5WRND0J1.md",
  "msc": [
    "11N60",
    "11K65"
  ],
  "name": "Erdős–Kac theorem",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/BY5/BY5WRND0J1.md",
  "status": null,
  "tag": "BY5WRND0J1",
  "uri": "m2://BY5WRND0J1",
  "url": "https://math2.tamnd.com/wiki/erdos-kac-theorem/",
  "writing": {
    "tag": "BY5WRND0J1",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
