OFFSET
1,1
EXAMPLE
3 is in the sequence because 2^(nextprime(3) - 3) + 3 = 2^(5 - 3) + 3 = 2^2 + 3 = 4 + 3 = 7 is prime number.
MATHEMATICA
Select[Prime[Range[300]], PrimeQ[2^(NextPrime[#]-#)+#] &] (* Stefano Spezia, Dec 06 2024 *)
PROG
(Magma) [p: p in PrimesUpTo(2000) | IsPrime(2^(NextPrime(p)-p)+p)];
(PARI) is(k) = isprime(k) && isprime(1 << (nextprime(k+1) - k) + k); \\ Amiram Eldar, Dec 06 2024
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Juri-Stepan Gerasimov, Dec 04 2024
STATUS
approved