OFFSET
1,1
EXAMPLE
The greatest primorial below 25 is 6, the factors of which are 2 and 3, neither of which are factors of 25=5^2.
MATHEMATICA
q[k_] := Module[{p = 2, r = 2}, If[CompositeQ[k], While[r < k && ! Divisible[k, p], p = NextPrime[p]; r *= p]; r >= k, False]]; Select[Range[800], q] (* Amiram Eldar, Nov 14 2024 *)
PROG
(PARI) P(n)=my(t=1, k); forprime(p=2, , k=t*p; if(k>n, return(t), t=k)); \\ A260188
isok(k) = (k>1) && !isprime(k) && (gcd(k, P(k-1)) == 1); \\ Michel Marcus, Nov 12 2024
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Daniel D Gibson, Nov 10 2024
STATUS
approved