OFFSET
1,2
COMMENTS
If n is prime then a(n) sets or equals a record.
If n and n+2 are twin primes then a(n) = a(n+2).
LINKS
J. Stauduhar, Table of n, a(n) for n = 1..10000
EXAMPLE
With n = 2, the sum of the primes <= 2 is 2, and the sum of the distinct elements of the Goldbach partitions of 2 is 0, so a(2) = 2 + 0 = 2.
With n = 4, the sum of the primes <= 4 is 5, and the sum of the distinct elements of the Goldbach partitions of is 2, so a(4) = 5 - 2 = 3.
MATHEMATICA
f[n_] := Module[{lst={}}, For[i=1, i<=n, i++, t = Plus @@ Select[ Table[Prime[i], {i, PrimePi[i]}], !PrimeQ[i-#]&]; AppendTo[lst, t]]; lst]; f[1000] (* J. Stauduhar, Sep 22 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. Stauduhar, Sep 22 2012
STATUS
approved