login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A356593
Smallest k such that primorial(k) > n^2.
0
1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
OFFSET
1,2
MATHEMATICA
a[n_] := Module[{k = 1, prod = p = 2}, While[prod < n^2, p = NextPrime[p]; prod *= p; k++]; k]; Array[a, 100] (* Amiram Eldar, Aug 15 2022 *)
PROG
(Python)
from sympy import primorial
def a(n):
k = 1
while True:
if primorial(k) > n**2:
return(k)
k += 1
for n in range(1, 90):
print(f'{a(n)}, ', end='')
CROSSREFS
KEYWORD
nonn
AUTHOR
Christoph B. Kassir, Aug 14 2022
STATUS
approved