OFFSET
1,1
COMMENTS
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..31 (terms < 10^13)
PROG
(PARI) isok(n) = isprime(n) && (n != 2) && ((2^n+n^2)% (n+2) == 0); \\ Michel Marcus, Oct 19 2013
(PARI) is(n)=Mod(2, n+2)^n==-4 && n>2 && isprime(n) \\ Charles R Greathouse IV, Oct 19 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 31 2009
EXTENSIONS
a(5) from Zak Seidov, Oct 31 2009
a(6)-a(8) from Juri-Stepan Gerasimov, Jan 16 2020
Terms a(9) and beyond from Giovanni Resta, Jan 23 2020
STATUS
approved