OFFSET
0,4
COMMENTS
a(n)>=1 because there is always a number 2*prime(i) between n^2 and (n+1)^2 for n>0.
LINKS
Robert Israel, Table of n, a(n) for n = 0..9999
EXAMPLE
a(6)=2 because between 5^2 and 6^2 there are two 2*prime(i): 2*prime(6)=2*13 and 2*prime(7)=2*17.
MAPLE
L:= map(numtheory:-pi, [seq(floor(n^2/2), n=0..100)]):
L[2..-1]-L[1..-2]; # Robert Israel, Feb 04 2018
MATHEMATICA
f[n_] := PrimePi[Floor[n^2/2]]; Table[f[(n + 1)] - f[n], {n, 0, 100}]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Apr 10 2005
EXTENSIONS
Edited and extended by Ray Chandler, Apr 16 2005
STATUS
approved