OFFSET
1,9
LINKS
Zak Seidov and T. D. Noe, Table of n, a(n) for n = 1..10000 (first 2000 terms from Zak Seidov)
Wikipedia, Goldbach's weak conjecture
FORMULA
a(n) = A125688(prime(n)). - R. J. Mathar, Jun 09 2014
EXAMPLE
a(9) = 2 because prime(9) = 23 and 23 = 3 + 7 + 13 = 5 + 7 + 11.
MATHEMATICA
last = 313; pp = PrimePi[last]; t = Select[Sort[Tally[Select[Total /@ Subsets[Prime[Range[2, pp]], {3}], PrimeQ]]], #[[1]] <= last &]; Join[{0, 0, 0, 0, 0, 0, 0}, Transpose[t][[2]]] (* T. D. Noe, Apr 15 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved