login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A058221
Next-to-smallest k such that 2^(2^n) - k is prime.
1
2, 5, 15, 17, 17, 83, 173, 357, 629, 179, 2543, 8067, 5619, 29027, 38783, 99267
OFFSET
1,1
PROG
(PARI) a(n) = my(N = 2^(2^n)); N - precprime(precprime(N)-1) \\ Michel Marcus, Jun 29 2013
CROSSREFS
Cf. A058220.
Sequence in context: A146109 A146108 A032841 * A349734 A146122 A263457
KEYWORD
nonn,hard,more
AUTHOR
Warren D. Smith, Nov 30 2000
EXTENSIONS
a(15) from Jinyuan Wang, Jun 06 2020
a(16) from Michael S. Branicky, Apr 23 2023
STATUS
approved