login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A062529 Smallest prime p such that there is a gap of 2^n between p and the next prime. 4
2, 3, 7, 89, 1831, 5591, 89689, 3851459, 1872851947, 1999066711391, 22790428875364879 (list; graph; refs; listen; history; internal format)
OFFSET

0,1

COMMENTS

a(2)=7 because 7 and 11 are consecutive primes with difference 4.

LINKS

C. Hilliard, TwinPrimes Java code.

Thomas R. Nicely, First occurrence prime gaps.

FORMULA

a(n)=A000230[2^(n-1)]. - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jan 12 2007

a(n) = A000230[2^(n-1)] = Min{p|nextprime(p)-p = 2^n} [May need adjusting since offset has been changed]

EXAMPLE

p=89, 89+2^3 = 97, prime

MATHEMATICA

f[n_] := Block[{k = 1}, While[Prime[k + 1] != n + Prime[k], k++ ]; Prime[k]]; Do[ Print[ f[2^n]], {n, 0, 10}] (Robert G. Wilson v, Jan 13 2005)

CROSSREFS

Cf. A000230, A062530, A101232.

Sequence in context: A065002 A053964 A062578 * A058443 A163152 A088120

Adjacent sequences:  A062526 A062527 A062528 * A062530 A062531 A062532

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Jun 25 2001

EXTENSIONS

a(10) sent by Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 13 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 06:41 EST 2012. Contains 205862 sequences.