OFFSET
1,4
COMMENTS
Conjecture: a(n) > 0 for all n. This holds for all n <= 100. - Charles R Greathouse IV, May 14 2012
LINKS
MATHEMATICA
Table[ps = Prime[Range[PrimePi[2^n] + 1, PrimePi[2^(n+1) + 1]]]; Count[Differences[ps], 2], {n, 25}] (* T. D. Noe, May 08 2012 *)
PROG
(PARI) a095017(maxex2)={my (L=List([1]), p2=8, n2=0, pp=5); forprime (p=7, 2^maxex2, if (p>p2, p2*=2; listput(L, n2); n2=0); if (p-pp==2, n2++); pp=p); Vec(L)};
a095017(30) \\ Hugo Pfoertner, Feb 05 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen and Labos Elemer, Jun 01 2004
EXTENSIONS
a(34) and beyond from Jerry M Lagrou, Dec 02 2023
STATUS
approved