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!)
A124589 Primes p such that q-p <= 4, where q is the next prime after p. 5
2, 3, 5, 7, 11, 13, 17, 19, 29, 37, 41, 43, 59, 67, 71, 79, 97, 101, 103, 107, 109, 127, 137, 149, 163, 179, 191, 193, 197, 223, 227, 229, 239, 269, 277, 281, 307, 311, 313, 347, 349, 379, 397, 419, 431, 439, 457, 461, 463, 487, 499, 521, 569, 599, 613, 617, 641, 643, 659 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Union of A124588 and A029710; complement of A124582. - Reinhard Zumkeller, Dec 23 2006
LINKS
K. Soundararajan, Small gaps between prime numbers: the work of Goldston-Pintz-Yildirim, Bull. Amer. Math. Soc., 44 (2007), 1-18.
FORMULA
a(n) >> n log^2 n. Infinite under standard conjectures. - Charles R Greathouse IV, Jun 01 2016
MATHEMATICA
Transpose[Select[Partition[Prime[Range[200]], 2, 1], Last[#]-First[#]<5&]][[1]] (* Harvey P. Dale, Apr 22 2013 *)
PROG
(PARI) is(n)=isprime(n) && (isprime(n+2) || isprime(n+4) || n==2) \\ Charles R Greathouse IV, Jun 01 2016
CROSSREFS
Sequence in context: A127047 A119615 A061771 * A079150 A177000 A117843
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 19 2006
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 March 29 06:57 EDT 2024. Contains 371265 sequences. (Running on oeis4.)