OFFSET
1,2
LINKS
T. D. Noe and Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
A101909 := proc(n::integer)
numtheory[pi](4*n)-numtheory[pi](2*n) ;
end proc:
seq(A101909(n), n=1..100) ; # R. J. Mathar, Oct 02 2019
MATHEMATICA
f[n_] := PrimePi[4n] - PrimePi[2n]; Table[ f[n], {n, 76}] (* Robert G. Wilson v, Feb 10 2005 *)
PROG
(PARI) bet2n4n(n) = { local(c, x, y); forstep(x=2, n, 2, c=0; forprime(y=x+1, x+x-1, c++; ); print1(c", ") ) }
(PARI) s=0; vector(100, n, s+=isprime(4*n-1)+isprime(4*n-3)-isprime(2*n-1)) \\ Charles R Greathouse IV, Mar 12 2012
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Jan 28 2005
STATUS
approved