OFFSET
1,1
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
EXAMPLE
a(54)=21 because 195 = 3 * 5 * 13 and 21 = 3 + 5 + 13.
MATHEMATICA
t={}; Do[If[!PrimeQ[n], AppendTo[t, Total[Times@@@FactorInteger[n]]]], {n, 9, 245, 2}]; t (* Jayanta Basu, Jun 04 2013 *)
spf[n_]:=Total[Flatten[Table[#[[1]], #[[2]]]&/@FactorInteger[n]]]; spf/@ Select[Range[9, 501, 2], CompositeQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 29 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Patrick De Geest, Jun 15 1998
STATUS
approved