%I #5 Dec 04 2020 14:49:51
%S 0,0,0,1,0,1,0,0,1,1,0,0,0,2,2,1,1,0,0,1,1,1,0,1,1,2,1,1,0,1,1,2,3,1,
%T 2,3,1,3,2,3,0,0,1,0,2,1,2,2,1,1,1,3,1,2,1,1,4,2,1,3,2,3,0,2,4,3,2,3,
%U 0,3,2,2,2,3,2,3,1,3,3,1,5,2,3,3,4,2,5,3,3,4,4,1,2,4,4,4,5,5,4,2,2,3,3,2,2
%N Number of primes between n^2 and (n+1/7)^2.
%t Table[PrimePi[(n+1/7)^2]-PrimePi[n^2],{n,110}] (* _Harvey P. Dale_, Dec 04 2020 *)
%o (PARI) pbetweensq2(n) = { for(x=1,n, c=0; for(y=floor(x)^2,(x+1/7)^2, if(isprime(y),c++) ); print1(c",") ) }
%K easy,nonn
%O 1,14
%A _Cino Hilliard_, Dec 31 2003
|