{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $n$ be a [[composite number|0N3ADXHNTQ]].\nThen $n$ has a prime factor $p$ with $p^2 \\le n$, that is, $p \\le \\sqrt{n}$.\n\n## Remarks\n\nThe [[smallest prime factor|0S2SYHTWPY]] $p$ of $n$ has this property. Write $n = p m$. Then $m \u003e 1$, and each prime factor of $m$ is at least $p$, so $m \\ge p$ and $n \\ge p^2$.\nThis result justifies [[trial division|0Z962ECCXR]]: to test whether $n \u003e 1$ is prime, it is enough to test the primes $p \\le \\sqrt{n}$.\nFor example, $\\sqrt{97} \u003c 10$ and none of $2, 3, 5, 7$ divides $97$, so $97$ is prime.\n\n## Explanations\n\n### L1 human\n\nIf $n = a b$ with both factors larger than $\\sqrt{n}$, then $a b \u003e n$, which is impossible.\nSo one of the two factors is at most $\\sqrt{n}$, and a prime factor of that factor is also at most $\\sqrt{n}$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "11A51"
    ],
    "name": "A composite number has a prime factor at most its square root",
    "role": "proposition",
    "sources": [
      {
        "locator": "Method",
        "url": "https://en.wikipedia.org/wiki/Trial_division"
      }
    ],
    "tag": "0EB6BBMQMC",
    "uses": [
      "0N3ADXHNTQ",
      "0S2SYHTWPY"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0EB6BBMQMC/",
  "links": [
    {
      "field": "uses",
      "target": "0N3ADXHNTQ"
    },
    {
      "field": "uses",
      "target": "0S2SYHTWPY"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0EB6BBMQMC.md",
  "msc": [
    "11A51"
  ],
  "name": "A composite number has a prime factor at most its square root",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0EB/0EB6BBMQMC.md",
  "status": null,
  "tag": "0EB6BBMQMC",
  "uri": "m2://0EB6BBMQMC",
  "url": "https://math2.tamnd.com/wiki/a-composite-number-has-a-prime-factor-at-most-its-square-root/",
  "writing": {
    "tag": "0EB6BBMQMC",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
