login
A057662
Smallest prime q such that q+2^prime(n) is a prime, where prime(n) is the n-th prime.
2
3, 3, 5, 3, 5, 17, 29, 53, 11, 11, 11, 29, 71, 29, 5, 5, 131, 197, 3, 11, 29, 23, 89, 29, 359, 149, 239, 239, 881, 281, 29, 3449, 197, 683, 389, 683, 101, 1283, 83, 191, 1181, 197, 5, 71, 107, 101, 71, 4001, 1433, 251, 431, 29, 1361, 89, 509, 83, 2459, 941, 101, 197
OFFSET
1,1
COMMENTS
n=6, prime(6)=13, 8192+17=8209 is a prime but 8192+2,8182+3,...,8192+13 are not, so a(6)=17
FORMULA
a(n) = A056206(A000040(n)).
PROG
(PARI) a(n) = my(P=2^prime(n), q=2); while (!isprime(P+q), q = nextprime(q+1)); q; \\ Michel Marcus, Mar 04 2022
CROSSREFS
Sequence in context: A239931 A033558 A046217 * A015971 A163167 A243729
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 16 2000
STATUS
approved