Documentation

FormalConjectures.ForMathlib.Data.Nat.MaxPrimeFac

noncomputable def Nat.maxPrimeFac (n : ) :

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.

Equations
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) :
    @[simp]