Prime_Exponent_Function_is_Primitive_Recursive
Provedcomputabilityprimitive-recursive-functionsproofwiki
Let be a natural number. Let be defined as where is the prime exponent function. Then is primitive recursive.
Preamble
import Mathlib.Computability.Primrec import Mathlib.Data.Nat.Factorization.Basic
Formal statement
theorem Prime_Exponent_Function_is_Primitive_Recursive : Primrec₂ (fun (n j : ℕ) => n.factorization j) := by sorry
Source