OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) >> n/log n. - Charles R Greathouse IV, Jul 20 2015
Sum_{n>=1} 1/a(n)^2 = A249270. - Amiram Eldar, Aug 09 2022
EXAMPLE
a(5) = 2 because 2 is the greatest primorial less than or equal to 5.
a(31) = 30 because 30 is the greatest primorial less than or equal to 31.
MATHEMATICA
Table[k = 0; While[Times @@ Prime@ Range[k + 1] <= n, k++]; Times @@ Prime@ Range@ k, {n, 120}] (* Michael De Vlieger, Aug 30 2016 *)
PROG
(PARI) a(n)=my(t=1, k); forprime(p=2, , k=t*p; if(k>n, return(t), t=k)) \\ Charles R Greathouse IV, Jul 20 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Jean-Marc Rebert, Jul 18 2015
STATUS
approved