OFFSET
1,2
EXAMPLE
There are no primes between 0 and 1, so a(1) = 0;
there are three primes between 1 and 6, so a(2) = 3;
there are three primes between 6 and 15, so a(3) = 3.
MAPLE
A192451 := proc(n) numtheory[pi](n*(2*n-1)) -numtheory[pi]((n-1)*(2*n-3)) ; end proc: # R. J. Mathar, Jul 01 2011
PROG
(PARI) a(n)=sum(k=2*n^2-5*n+4, n*(2*n-1), isprime(k)) \\ Charles R Greathouse IV, Jul 13 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 01 2011
EXTENSIONS
Corrected by R. J. Mathar, Jul 01 2011
STATUS
approved