OFFSET
1,1
COMMENTS
Also the largest k such that primorial(k) < 10^n.
"at most" in name could also be "exactly" and it gives the same data.
a(n) is the number of distinct prime factors of A091800(n).
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 6 as primorial(6) = 30030 < 10^5 < 510510 = primorial(6 + 1) = primorial(7).
MATHEMATICA
Table[First[FirstPosition[#, _?(# > n &)]] - 1, {n, Last[#] - 1}] & [IntegerLength[FoldList[Times, Prime[Range[50]]]]] (* Paolo Xausa, Aug 20 2025 *)
PROG
(PARI) a(n) = my(ulim=10^n-1, pp=1, t=0); forprime(p=2, oo, pp*=p; if(pp > ulim, return(t)); t++)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
David A. Corneth, Aug 20 2025
STATUS
approved
