A090406 a(n) = PrimePi(n+3) - PrimePi(n).
2, 2, 1, 2, 1, 1, 0, 1, 1, 2, 1, 1, 0, 1, 1, 2, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 2, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 2, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 2, 1, 1
Offset: 1
Keywords
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Hardy-Littlewood Conjectures
Programs
-
Maple
B:= [seq(numtheory:-pi(n),n=1..103)]: B[4..-1] - B[1..-4]; # Robert Israel, Aug 14 2015
-
Mathematica
Last[#]-First[#]&/@Partition[PrimePi[Range[110]],4,1] (* Harvey P. Dale, Feb 24 2013 *)
Comments