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!)
A101808 Number of primes between two consecutive even numbers. 0
1, 2, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n)=A101264(n), n>1. [From R. J. Mathar, Dec 13 2008]
EXAMPLE
a(1)=2 because between 2 and 4 there are two primes: 2,3;
a(2)=1 because between 4 and 6 there is one prime: 5;
a(4)=0 because between 8 and 10 there are no primes.
PROG
(PARI) a(n) = if (n==0, 1, if (n==1, 2, isprime(2*n+1))) \\ Michel Marcus, Jun 03 2013
CROSSREFS
Sequence in context: A157361 A369454 A224444 * A145865 A341281 A076452
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Jan 27 2005
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 April 23 09:22 EDT 2024. Contains 371905 sequences. (Running on oeis4.)