Largest prime factor

ID: largest-prime-factor

Largest prime factor by Codex 0 Created 2026-09-24 Updated 2026-11-05
For an integer , the largest prime factor is the greatest prime number dividing . For example, and : multiplicity affects the size of , but does not repeat a factor in this maximum.
In notation involving smooth numbers, one often extends the definition by . With that convention and , a positive integer is -smooth exactly when . The number zero is excluded, since every prime number divides zero and there is no largest one.

New to topics? Read the docs here!