OFFSET
1,1
EXAMPLE
a(1)=19 since 19=3+5+11; a(2)=23 since 23=5+7+11=3+7+13.
a(5)=37 since 37=3+5+29=3+11+23=5+13+19=7+11+19=7+13+17.
MATHEMATICA
nn=100; t=Table[0, {nn}]; s=Table[{}, {nn}]; Do[p=Prime[i]+Prime[j]+Prime[k]; If[PrimeQ[p], pin=PrimePi[p]; If[pin<=nn, t[[pin]]++; AppendTo[s[[pin]], {i, j, k}]]], {i, nn}, {j, i+1, nn}, {k, j+1, nn}]; Table[pos=Position[t, n]; If[pos=={}, 0, Prime[pos[[1, 1]]]], {n, nn}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, Nov 23 2004
EXTENSIONS
Corrected and extended by T. D. Noe, Nov 23 2004
STATUS
approved