OFFSET
1,2
COMMENTS
a(12) > 10^5. - Michael S. Branicky, Jan 02 2025
EXAMPLE
2 in sequence because 4^2 - prime(2) = 16 - 3 = 13 (prime).
4 is not in sequence because 4^4 - prime(4) = 256 - 7 = 249 (not prime).
MATHEMATICA
Do[If[PrimeQ[4^n-Prime[n]], Print[n]], {n, 1, 3*10^4}]
PROG
(Magma) [n: n in [0..1500] | IsPrime(4^n-NthPrime(n))];
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Vincenzo Librandi, Dec 30 2024
EXTENSIONS
a(11) from Michael S. Branicky, Jan 01 2025
STATUS
approved