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”).

A378490
Least prime p such that p^(2^n) + 2^(2^n) is prime.
0
3, 3, 3, 13, 89, 29, 37, 113, 113, 13, 1151, 43, 53, 5503
OFFSET
0,1
FORMULA
a(n) = A132260(n,1) for n>=3.
EXAMPLE
a(1) = 3, because 3^(2^1) + 2^(2^1) = 13 is prime and no smaller prime satisfies the condition.
PROG
(PARI) a(n) = my(p=2, q=2^n); while (!ispseudoprime(p^q + 2^q), p=nextprime(p+1)); p; \\ Michel Marcus, Nov 28 2024
CROSSREFS
KEYWORD
nonn,more,new
AUTHOR
Jean-Marc Rebert, Nov 28 2024
STATUS
approved