OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
FORMULA
MAPLE
a:= proc(n) option remember; local k;
if n=1 then 5
else for k from a(n-1)+1 do
if add (i[2], i=ifactors(k)[2])=2 then next fi;
if irem (k, 2)=0 or isprime (k-2) then break fi
od; k
fi
end:
seq (a(n), n=1..60); # Alois P. Heinz, Nov 24 2010
MATHEMATICA
Select[Union[Flatten[Table[Prime[i] + Prime[j], {i, 25}, {j, 25}]]], PrimeOmega[#] != 2 &] (* Alonso del Arte, Feb 08 2013 *)
PROG
(PARI) is(n)=if(n%2, isprime(n-2)&&bigomega(n)!=2, n>2&&!isprime(n/2)) \\ above 4 * 10^18, conditional on the Goldbach conjecture Charles R Greathouse IV, Feb 09 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Nov 24 2010
EXTENSIONS
More terms from Alois P. Heinz, Nov 24 2010
STATUS
approved