login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A379694
Numbers k such that 4^k - prime(k) is prime.
0
1, 2, 3, 5, 9, 24, 49, 1466, 4588, 27804, 60126
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
Sequence in context: A349676 A287915 A354141 * A105180 A094206 A278119
KEYWORD
nonn,more
AUTHOR
Vincenzo Librandi, Dec 30 2024
EXTENSIONS
a(11) from Michael S. Branicky, Jan 01 2025
STATUS
approved