OFFSET
1,7
MATHEMATICA
a[n_] := PrimePi[2*n] - PrimePi[Floor[3*n/2]] + If[PrimeQ[Floor[ 3*n/2]], 1, 0]; Array[a, 100] (* Jean-François Alcover, Jan 11 2018 *)
PROG
(Sage)
A298071 = lambda n: len([p for p in (3*n//2..2*n) if is_prime(p)])
print([A298071(n) for n in (1..97)]) # Peter Luschny, Jan 11 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Bruno Berselli, Jan 11 2018
STATUS
approved