login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Number of primes between n^2 and (n+1/3)^2.
0

%I #3 Oct 01 2013 17:57:55

%S 0,1,1,1,0,1,1,1,1,2,1,2,1,2,3,2,1,1,2,2,2,2,1,2,2,3,3,2,3,3,3,3,5,2,

%T 3,5,2,4,3,6,3,4,5,2,4,5,4,3,3,3,4,6,4,3,4,4,5,4,4,6,4,6,4,5,7,5,6,7,

%U 6,7,5,5,3,8,8,7,2,7,7,4,7,4,4,5,5,4,8,5,6,5,7,4,8,8,6,6,11,8,9,5,7,7,8,8,9

%N Number of primes between n^2 and (n+1/3)^2.

%o (PARI) pbetweensq2(n) = { for(x=1,n, c=0; for(y=floor(x)^2,(x+1/3)^2, if(isprime(y),c++) ); print1(c",") ) }

%K easy,nonn

%O 1,10

%A _Cino Hilliard_, Dec 30 2003