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
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
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 16 2000
STATUS
approved