OFFSET
0,4
COMMENTS
Note that here, the endpoints of the interval are not counted. - Michel Marcus, Sep 05 2013
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..91 (terms 0..45 from G. C. Greubel)
FORMULA
a(n) = A075084(2^n) - 2, for n>0. - Michel Marcus, Sep 05 2013
EXAMPLE
Between 2^3 and 2^4 there are 5 composite integers: 9, 10, 12, 14, and 15.
MATHEMATICA
Join[{0}, Table[2^n - (PrimePi[2^(n + 1)] - PrimePi[2^n]) - 1, {n, 33}]] (* T. D. Noe, Apr 11 2012 *)
PROG
(Magma) [0] cat [2^n-(#PrimesUpTo(2^(n+1))-#PrimesUpTo(2^n))-1: n in [1..28]]; // Vincenzo Librandi, Aug 21 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antoine Gold, Apr 11 2012
STATUS
approved