OFFSET
1,1
COMMENTS
f(x) = sum of prime factors with multiplicity, so that f(1500) = 2+2+3+5+5+5 = 22.
MATHEMATICA
sopf[n_]:=Total[Flatten[Table[#[[1]], #[[2]]]&/@FactorInteger[n]]]; nifQ[ n_]:=Length[NestWhileList[sopf, n, !PrimeQ[#]&&#!=4&]]==10; Select[ Range[ 4000, 34000], nifQ] (* Harvey P. Dale, Sep 06 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved