{
  "aliases": [
    "least-prime-factor",
    "minfac"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "0EB6BBMQMC"
    }
  ],
  "body": "\n## Definition\n\nLet $n$ be a natural number with $n \\ge 2$.\nThe smallest prime factor of $n$ is the smallest [[prime number|0SN0MAEKYX]] $p$ such that $p \\mid n$.\nIt exists by the [[existence of a prime divisor|0SPBEDVNW1]].\n\n## Remarks\n\nThe smallest prime factor of $n$ is also the smallest divisor $d$ of $n$ with $d \u003e 1$.\nThe number $n$ is prime if and only if its smallest prime factor is $n$.\nIf $n$ is composite, its smallest prime factor $p$ satisfies $p^2 \\le n$. See [[a composite number has a prime factor at most its square root|0EB6BBMQMC]].\nFor example, the smallest prime factor of $91 = 7 \\cdot 13$ is $7$.\n\n## Explanations\n\n### L1 human\n\nDivide $n$ by $2$, then by $3$, then by $4$, and so on. The first number that divides $n$ exactly is the smallest prime factor.\nIt is always prime, because a smaller factor of it would also divide $n$ and would come earlier.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "least-prime-factor",
      "minfac"
    ],
    "defines": "0VMWPGGG3C",
    "kind": "definition",
    "msc": [
      "11A41"
    ],
    "name": "Smallest prime factor",
    "sources": [
      {
        "locator": "Trial division",
        "url": "https://en.wikipedia.org/wiki/Prime_number"
      }
    ],
    "tag": "0S2SYHTWPY",
    "uses": [
      "0SN0MAEKYX",
      "0SPBEDVNW1"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0S2SYHTWPY/",
  "links": [
    {
      "field": "defines",
      "target": "0VMWPGGG3C"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    },
    {
      "field": "uses",
      "target": "0SPBEDVNW1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0S2SYHTWPY.md",
  "msc": [
    "11A41"
  ],
  "name": "Smallest prime factor",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0S2/0S2SYHTWPY.md",
  "status": null,
  "tag": "0S2SYHTWPY",
  "uri": "m2://0S2SYHTWPY",
  "url": "https://math2.tamnd.com/wiki/smallest-prime-factor-definition/",
  "writing": {
    "tag": "0S2SYHTWPY",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
