login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 9 20:11 EDT 2024. Contains 374191 sequences. (Running on oeis4.)