The greatest prime divisor of a natural number n > 1.
Takes the junk value 0 for n = 0 and n = 1.
TODO Consider redefining this using the computable implementation:
n.primeFactorsList.getLastI.
Instances For
theorem
Nat.maxPrimeFac_eq_of_dvd_of_le
(n p : ℕ)
(hn : 0 < n)
(hp : Prime p)
(h_dvd : p ∣ n)
(h_le : n.maxPrimeFac ≤ p)
: