OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = n + A056171(n). - Alois P. Heinz, Nov 04 2020
MATHEMATICA
A338363[n_] := PrimePi[n] - PrimePi[n/2] + n;
Array[A338363, 100] (* Paolo Xausa, Jan 30 2024 *)
PROG
(PARI) a(n) = n + primepi(n) - primepi(n\2); \\ Michel Marcus, Nov 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 04 2020
STATUS
approved