OFFSET
0,1
COMMENTS
The Goldbach conjecture is that every even number is the sum of two primes.
LINKS
T. D. Noe, Table of n, a(n) for n = 0..5000
EXAMPLE
2 is largest even integer which is the sum of two primes in 0 ways, 12 is largest even integer which is the unordered sum of two primes in 1 way (5+7), etc.
MATHEMATICA
f[n_] := Block[{c = 0, k = 3}, While[k <= n/2, If[PrimeQ[k] && PrimeQ[n - k], c++ ]; k++ ]; c]; a = Table[0, {50}]; a[[1]] = 2; a[[2]] = 4; Do[m = n; b = f[n]; If[b < 100, a[[b + 1]] = n], {n, 6, 20000, 2}] (* Robert G. Wilson v, Dec 20 2003 *)
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
STATUS
approved