OFFSET
1,2
EXAMPLE
1 is a term because 2^1 * 2 + 3 = 7 is prime.
4 is a term because 2^4 * 7 - 3 = 109 is prime.
MATHEMATICA
Select[Range@ 5000, Or[PrimeQ[2^# Prime@ # + 3], PrimeQ[2^# Prime@ # - 3]] &] (* Michael De Vlieger, Dec 02 2015 *)
PROG
(PARI) for(n=1, 1e4, if(ispseudoprime(2^n*prime(n) - 3) || ispseudoprime(2^n*prime(n) + 3), print1(n, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Dec 02 2015
STATUS
approved