OFFSET
1,1
COMMENTS
Obviously the endpoints are not counted (since they are composite).
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..20000
FORMULA
MATHEMATICA
MapIndexed[PrimePi[2*#] + #2[[1]] - # + 1 &, Select[Range[100], CompositeQ]] (* Paolo Xausa, Oct 22 2024 *)
PROG
(Python)
from sympy import composite, primepi
def A376761(n): return n+1-(m:=composite(n))+primepi(m<<1) # Chai Wah Wu, Oct 22 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 22 2024.
STATUS
approved