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!)
A271211 Composite integers sandwiched between primes p, q with q-p = 4. 3
8, 9, 10, 14, 15, 16, 20, 21, 22, 38, 39, 40, 44, 45, 46, 68, 69, 70, 80, 81, 82, 98, 99, 100, 104, 105, 106, 110, 111, 112, 128, 129, 130, 164, 165, 166, 194, 195, 196, 224, 225, 226, 230, 231, 232, 278, 279, 280, 308, 309, 310, 314, 315, 316, 350, 351, 352, 380 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

Laurent Coppey, Décompositions multiplicatives directes des entiers, Diagrammes, 65-66 (2011), p. 1-68, in French, see J4 p. 11.

EXAMPLE

The composite number 8 is sandwiched between primes 7 and 11, and 11-7=4, so 8 is a member of the sequence.

MATHEMATICA

Range[#[[1]]+1, #[[2]]-1]&/@Select[Partition[Prime[Range[100]], 2, 1], #[[2]]- #[[1]] == 4&]//Flatten (* Harvey P. Dale, Oct 12 2019 *)

PROG

(PARI) lista(nn) = {forcomposite(c=4, nn, if ((p=precprime(c)) && ((nextprime(c)-p)==4), print1(c, ", ")); ); }

CROSSREFS

Cf. A014574, A029710, A045881.

Sequence in context: A067683 A164276 A154967 * A072381 A046415 A091417

Adjacent sequences:  A271208 A271209 A271210 * A271212 A271213 A271214

KEYWORD

nonn

AUTHOR

Michel Marcus, Apr 02 2016

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 June 6 01:16 EDT 2020. Contains 334858 sequences. (Running on oeis4.)