The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A256737 Number of composites lying between successive pairs of primes, beginning with pair (2,3). Bisection of A046933. 1
0, 1, 1, 1, 5, 5, 1, 5, 1, 3, 5, 5, 3, 3, 3, 3, 1, 1, 5, 5, 1, 1, 1, 11, 1, 5, 9, 5, 1, 3, 9, 3, 3, 5, 1, 5, 5, 3, 7, 7, 1, 1, 3, 7, 1, 11, 3, 3, 11, 17, 9, 5, 5, 5, 1, 5, 1, 9, 3, 5, 11, 5, 9, 9, 5, 3, 5, 7, 13, 11, 9, 3, 9, 3, 3, 3, 3, 3, 9, 3, 5, 3, 5, 5, 3, 1, 1, 9, 9, 5, 3, 3, 5, 5, 21 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
EXAMPLE
For the third term in the sequence, use prime pair (11,13). Only composite that lies between is "12", thus the third value in the sequence is "1".
MATHEMATICA
Flatten[Differences/@Partition[Prime[Range[200]], 2]]-1 (* Harvey P. Dale, Dec 17 2023 *)
PROG
(PARI) a(n)=my(q=prime(2*n)); q-precprime(q-1)-1 \\ Charles R Greathouse IV, Apr 21 2015
CROSSREFS
Complement of A256736 with respect to A046933.
Sequence in context: A282969 A046095 A322545 * A055183 A198740 A082956
KEYWORD
nonn
AUTHOR
Peter Woodward, Apr 09 2015
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 May 12 17:17 EDT 2024. Contains 372492 sequences. (Running on oeis4.)