OFFSET
1,1
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..10410
FORMULA
EXAMPLE
a(21) = pi(21) + prime(21) = 8 + 73 = 81.
MAPLE
with(numtheory); A100486:=n->pi(n) + ithprime(n); seq(A100486(n), n=1..60); # Wesley Ivan Hurt, Jan 28 2014
MATHEMATICA
Table[PrimePi[n] + Prime[n], {n, 60}]
PROG
(PARI) a(n) = primepi(n) + prime(n); \\ Michel Marcus, Feb 24 2023
(Magma) [#PrimesUpTo(n) + NthPrime(n): n in [1..80]]; // G. C. Greubel, Apr 04 2023
(SageMath) [prime_pi(n) + nth_prime(n) for n in range(1, 81)] # G. C. Greubel, Apr 04 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Nov 22 2004
STATUS
approved