OFFSET
2,3
COMMENTS
If n is a prime, a(n) = 0.
a(20) is presently unknown - see A195265 for the trajectory.
EXAMPLE
9 -> 32 -> 25 -> 52 -> 2213, which is prime, taking 4 steps, so a(9) = 4.
MATHEMATICA
fn[n_] := FromDigits[Flatten[IntegerDigits[DeleteCases[Flatten[FactorInteger[n]], 1]]]];
Map[Length, Table[NestWhileList[fn, n, # != 1 && ! PrimeQ[#] &], {n, 2,
19}], {1}] - 1 (* Robert Price, Mar 16 2020 *)
CROSSREFS
KEYWORD
nonn,base,more,hard
AUTHOR
N. J. A. Sloane, Oct 27 2013
STATUS
approved