|
Search: id:A101597
|
|
|
| A101597 |
|
Number of consecutive composite numbers between balanced primes and their lower or upper prime neighbor. |
|
+0 2
|
|
| 1, 5, 5, 5, 11, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 11, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 11, 5, 5, 5, 11, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 11, 5, 5, 5, 5, 5, 11, 5, 5, 5, 5, 11, 11, 5, 11, 5, 5, 5, 5, 5, 5, 5, 5, 11, 5, 5, 5, 5, 5, 5, 5, 5, 11, 5, 5, 5, 5, 5, 5, 5, 5, 5
(list; graph; listen)
|
|
|
OFFSET
|
2,2
|
|
|
COMMENT
|
These numbers are not always prime with 35 occurring for prime(n) n<1000000.
|
|
EXAMPLE
|
53 has the 5 consecutive composites 48,49,50,51,52 below it and the 5 consecutive composites 54,55,56,57,58 above it so 5 is in the second position in the table.
|
|
PROGRAM
|
(PARI) betwixtpr(n) = { local(c1, c2, x, y); for(x=2, n, c1=c2=0; for(y=prime(x-1)+1, prime(x)-1, if(!isprime(y), c1++); ); for(y=prime(x)+1, prime(x+1)-1, if(!isprime(y), c2++); ); if(c1==c2, print1(c1", ")) ) }
|
|
CROSSREFS
|
Sequence in context: A087516 A135089 A127310 this_sequence A119991 A131286 A013607
Adjacent sequences: A101594 A101595 A101596 this_sequence A101598 A101599 A101600
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Cino Hilliard (hillcino368(AT)gmail.com), Jan 26 2005
|
|
|
Search completed in 0.002 seconds
|