OFFSET
1,2
EXAMPLE
prime(10) = 29: 2*3*5*7*11*13 < 17*19*23*29 and as 2*3*5*7*11*13*17 > 19*23*29 we have a(10) = 13.
PROG
(PARI) primo(n) = factorback(primes(n)); \\ A002110
a(n) = {if (n==1, 1, my(iq=2, P= primo(n)); while (sqr(primo(iq))<P, iq++); prime(iq-1); ); } \\ Michel Marcus, Mar 04 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 06 2001
STATUS
approved