OFFSET
1,1
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..9225
MAPLE
isA038609 := proc(n)
local i, p, q;
for i from 1 do
p := ithprime(i) ;
if 2*p > n then
return false;
fi;
q := n-p ;
if q <= p then
return false ;
end if;
if isprime(q) then
return true;
end if;
end do:
end proc:
n :=1 :
for c from 1 do
if isA038609(c) then
printf("%d %d\n", n, c) ;
n := n+1 ;
end if;
end do: # R. J. Mathar, Jun 09 2014
MATHEMATICA
max = 100;
ip = PrimePi[max];
Table[Prime[i] + Prime[j], {i, ip}, {j, i + 1, ip}] // Flatten // Union // Select[#, # <= max&]& (* Jean-François Alcover, Mar 23 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vasiliy Danilov (danilovv(AT)usa.net) 1998 Jul
STATUS
approved