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”).

A089614
Number of primes between n^2 and (n+1/4)^2.
0
0, 1, 0, 1, 0, 1, 0, 1, 1, 2, 0, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 0, 2, 1, 2, 2, 2, 1, 2, 2, 3, 4, 2, 3, 4, 2, 4, 2, 5, 3, 2, 2, 2, 3, 3, 2, 2, 3, 2, 3, 5, 2, 3, 3, 2, 5, 4, 2, 4, 3, 4, 1, 3, 5, 3, 5, 6, 4, 5, 2, 3, 3, 6, 7, 6, 2, 5, 6, 2, 6, 4, 4, 3, 5, 3, 7, 3, 6, 4, 6, 2, 6, 6, 6, 5, 7, 7, 6, 4, 4, 4, 6, 7, 6
OFFSET
1,10
MATHEMATICA
Table[PrimePi[(n+1/4)^2]-PrimePi[n^2], {n, 110}] (* Harvey P. Dale, Jun 17 2018 *)
PROG
(PARI) pbetweensq2(n) = { for(x=1, n, c=0; for(y=floor(x)^2, (x+1/4)^2, if(isprime(y), c++) ); print1(c", ") ) }
CROSSREFS
Sequence in context: A025862 A004540 A353945 * A064875 A216657 A328614
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Dec 30 2003
STATUS
approved