OFFSET
1,3
MATHEMATICA
f[n_] := Plus @@ (IntegerDigits[n] /. {0 -> 1, 1 -> 2, 2 -> 3, 3 -> 5, 4 -> 7, 5 -> 11, 6 -> 13, 7 -> 17, 8 -> 19, 9 -> 23}); t = Table[0, {100}]; Do[a = f[n]; If[a < 101 && t[[a]] == 0, t[[f[n]]] = n], {n, 5000}]; t
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy and Robert G. Wilson v, Nov 08 2005
STATUS
approved