OFFSET
1,1
LINKS
B. D. Swan, Table of n, a(n) for n=1,...,60000
EXAMPLE
Recall that A001043 begins with 5,8,12, ..
So 10 (5+5), 13 (5+8), 16 (8+8), 17 (5+12), 20 (8+12) are in the sequence.
PROG
(PARI) issum(i, vss) = {for (j = 1, #vss, if (vss[j] > i, break); for (k = 1, #vss, sv = vss[j] + vss[k]; if (sv == i, return (1)); if (sv > i, break); ); ); return (0); }
lista(nn) = {vec = vector(nn, i, i); vss = select(i->((precprime((i-1)/2) + nextprime(i/2) == i) && (i>2)), vec); for (i = 1, nn, if (issum(i, vss), print1(i, ", ")); ); } \\ Michel Marcus, Oct 14 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 25 2008
STATUS
approved