OFFSET
1,2
COMMENTS
The number of primes less than n plus the number of nonprimes less than the n-th prime.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MAPLE
MATHEMATICA
Table[PrimePi[n] + Prime[n] - n , {n, 1, 20}] (* G. C. Greubel, Jun 04 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Oct 29 2009
EXTENSIONS
Corrected (89 replaced with 88, 94 with 93, 127 with 126, 146 with 145, etc.) by R. J. Mathar, May 21 2010
STATUS
approved