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!)
A059790 Distance between 2*(n-th prime) and nearest prime. 2
1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 3, 3, 1, 5, 5, 3, 3, 3, 1, 1, 1, 1, 3, 5, 3, 5, 1, 3, 1, 3, 1, 5, 5, 1, 5, 3, 1, 1, 3, 1, 3, 3, 1, 1, 3, 3, 1, 1, 1, 3, 1, 5, 3, 3, 1, 3, 1, 3, 1, 1, 3, 5, 3, 1, 1, 3, 3, 3, 1, 1, 3, 1, 3, 5, 3, 5, 3, 1, 3, 1, 3, 1, 1, 9, 3, 3, 3, 3, 5, 3, 1, 1, 3, 1, 3, 3, 5, 1, 3, 3, 9, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
EXAMPLE
Distance 1 means that either 2p+1 or 2p-1 is also prime.
MAPLE
with(numtheory): [seq(min(2*ithprime(k)-prevprime(2*ithprime(k)), nextprime(2*ithprime(k))-2*ithprime(k)), k=1..256)];
CROSSREFS
Sequence in context: A186028 A225054 A355604 * A307156 A326057 A130778
KEYWORD
nonn
AUTHOR
Labos Elemer, Feb 22 2001
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 April 19 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)