OFFSET
1,2
FORMULA
EXAMPLE
a(3) = 19 because 2*3*5 = 30 = A002808(19) is the 19th composite number.
MATHEMATICA
Table[q = Product[ Prime[i], {i, 1, n}]; q - PrimePi[q] - 1, {n, 1, 12}]
PROG
(PARI) a(n) = my(m = vecprod(primes(n))); m - primepi(m) - 1; \\ Amiram Eldar, Aug 09 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 28 2001
EXTENSIONS
More terms from Robert G. Wilson v, Nov 29 2001
Name clarified and a(13)-a(19) calculated from the data at A000849 and added by Amiram Eldar, Aug 09 2024
STATUS
approved