login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A129823 Four consecutive nonprime odd numbers {n-1,n+1,n+3,n+5}. 0
115, 117, 119, 121, 117, 119, 121, 123, 119, 121, 123, 125, 141, 143, 145, 147, 183, 185, 187, 189, 201, 203, 205, 207, 203, 205, 207, 209, 213, 215, 217, 219, 215, 217, 219, 221, 243, 245, 247, 249, 285, 287, 289, 291, 295, 297, 299, 301, 297, 299, 301 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

These quartets seem to correspond to larger Prime gaps: the larger the primes gaps the more runs of odd nonprimes.

LINKS

Table of n, a(n) for n=1..51.

FORMULA

a(n) = {n-1,n+1,n+3,n+5} for both odd and both nonprime.

MATHEMATICA

Flatten[Table[If[OddQ[n - 1] && PrimeQ[n - 1] == False && PrimeQ[n + 1] == False && PrimeQ[n + 3] == False && PrimeQ[n + 5] == False, {{n - 1}, {n + 1}, {n + 3}, (n + 5)}, {}], {n, 2, 300}]]

Select[Partition[Range[1, 311, 2], 4, 1], NoneTrue[#, PrimeQ]&]//Flatten (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 21 2016 *)

CROSSREFS

Sequence in context: A084877 A060309 A101111 * A056035 A105993 A036269

Adjacent sequences:  A129820 A129821 A129822 * A129824 A129825 A129826

KEYWORD

nonn,uned

AUTHOR

Roger L. Bagula, May 20 2007

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 24 16:21 EST 2021. Contains 340411 sequences. (Running on oeis4.)