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.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A013633 nextprime(n) - prevprime(n). 10
 3, 2, 4, 2, 6, 4, 4, 4, 6, 2, 6, 4, 4, 4, 6, 2, 6, 4, 4, 4, 10, 6, 6, 6, 6, 6, 8, 2, 8, 6, 6, 6, 6, 6, 10, 4, 4, 4, 6, 2, 6, 4, 4, 4, 10, 6, 6, 6, 6, 6, 12, 6, 6, 6, 6, 6, 8, 2, 8, 6, 6, 6, 6, 6, 10, 4, 4, 4, 6, 2, 8, 6, 6, 6, 6, 6, 10, 4, 4 (list; graph; refs; listen; history; text; internal format)
 OFFSET 3,1 LINKS T. D. Noe, Table of n, a(n) for n=3..2000 FORMULA a(n) = A151800(n) - A151799(n) = A007918(n+1) - A007917(n-1). - M. F. Hasler, Sep 09 2015 EXAMPLE a(3) = nextprime(3) - prevprime(3) = 5 - 2 = 3: This shows that here the variants 2 (A151800 and A151799) of the nextprime and precprime functions are used, rather than the variants A007918 and A007917. - M. F. Hasler, Sep 09 2015 MAPLE [ seq(nextprime(i)-prevprime(i), i=3..100) ]; PROG (PARI) A013633(n)=nextprime(n+1)-precprime(n-1) \\ M. F. Hasler, Sep 09 2015 CROSSREFS Cf. A151800, A007918; A151799, A007917. Sequence in context: A256284 A322979 A106288 * A334662 A016559 A104566 Adjacent sequences: A013630 A013631 A013632 * A013634 A013635 A013636 KEYWORD nonn AUTHOR N. J. A. Sloane. 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.

Last modified May 18 15:24 EDT 2024. Contains 372664 sequences. (Running on oeis4.)