OFFSET
2,1
FORMULA
a(n) = Max[p; p^2 < A002110(n)], where p is prime; prime(n+s)^2 = a(n)^2 < Product[prime(1), ..., prime(n)] < prime(n+s+1)^2.
EXAMPLE
For n=2, 3, 4, 5, 7: {2^2, 6, 3^2}, {5^2, 30, 7^2}, {13^2, 210, 17^2}, {47^2, 2310, 53^2} {709^2, 510510, 719^2} or {4, 6, 9}, {25, 30, 49}, {169, 210, 289}, {2209, 2310, 2809}, {502681, 510510, 516961}.
Also, if n=2, then a(2) < prime(1)=2, if n=3, then a(3)=prime(3)=5 but for n > 3, a(n) > prime(n+1); e.g., a(6) = prime(40) = prime(6+34) = 173.
MATHEMATICA
q[x_] := Apply[Times, Table[Prime[w], {w, 1, x}]] rq[x_] := Floor[Sqrt[q[w]]//N] Table[Prime[PrimePi[a[w]]], {w, 2, 15}]
PROG
(PARI) primo(n) = prod(i=1, n, prime(i)); \\ A002110
a(n) = precprime(sqrtint(primo(n))); \\ Michel Marcus, Aug 29 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 29 2001
EXTENSIONS
More terms from Michel Marcus, Aug 29 2019
STATUS
approved