OFFSET
1,10
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
seq(numtheory:-pi(floor((n+1/6)^2))-numtheory:-pi(n^2), n=1..200); # Robert Israel, Jan 02 2018
MATHEMATICA
Table[PrimePi[(n+1/6)^2]-PrimePi[n^2], {n, 110}] (* Harvey P. Dale, Sep 17 2013 *)
PROG
(PARI) pbetweensq2(n) = { for(x=1, n, c=0; for(y=floor(x)^2, (x+1/6)^2, if(isprime(y), c++) ); print1(c", ") ) }
(PARI) a(n) = primepi((n+1/6)^2) - primepi(n^2); \\ Michel Marcus, Jan 03 2018
CROSSREFS
KEYWORD
AUTHOR
Cino Hilliard, Dec 31 2003
STATUS
approved