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!)
A134100 Primes p > 3 such that neither p-2 nor p-4 are prime. 5
29, 37, 53, 59, 67, 79, 89, 97, 127, 137, 149, 157, 163, 173, 179, 191, 211, 223, 239, 251, 257, 263, 269, 277, 293, 307, 331, 337, 347, 359, 367, 373, 379, 389, 397, 409, 419, 431, 439, 449, 457, 479, 487, 499, 509, 521, 541, 547, 557, 563, 569, 577, 587 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Upper primes after a prime gap of 6 or larger (Union of A031925, A031927, A031929, ...) - R. J. Mathar, Mar 15 2012
LINKS
FORMULA
a(n) ~ n log n. - Charles R Greathouse IV, Oct 27 2021
EXAMPLE
29 is a term because 29 follows the odd nonprime 27 which in turn follows the odd nonprime 25.
MATHEMATICA
Select[Range[5, 1000, 2], PrimeQ[#]&&!PrimeQ[#-2]&&!PrimeQ[#-4]&] (* Vladimir Joseph Stephan Orlovsky, Feb 03 2012 *)
PROG
(PARI) forprime(p=5, 600, if(!isprime(p-2) && !isprime(p-4), print1(p, ", "))); \\ Joerg Arndt, Oct 27 2021
(PARI) list(lim)=my(v=List(), p=23); forprime(q=29, lim, if(q-p>4, listput(v, q)); p=q); Vec(v) \\ Charles R Greathouse IV, Oct 27 2021
CROSSREFS
Sequence in context: A097997 A177873 A234973 * A060769 A355161 A031925
KEYWORD
easy,nonn
AUTHOR
Enoch Haga, Oct 08 2007
EXTENSIONS
Name corrected by Michel Marcus and Amiram Eldar, Oct 27 2021
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 February 26 19:43 EST 2024. Contains 370352 sequences. (Running on oeis4.)