OFFSET
1,1
COMMENTS
Different from A330136.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
40 is in the list because 40 has at least 2 distinct prime divisors, and the smallest prime divisor of 40 is 2 and the largest prime divisor of 40 is 5, and 2! <= 40 <= 5! because 2! = 2 and 5! = 120.
MAPLE
q:= n-> (s-> nops(s)>1 and min(s)!<=n and n<=max(s)!)(numtheory[factorset](n)):
select(q, [$2..150])[]; # Alois P. Heinz, Sep 20 2024
MATHEMATICA
q[k_] := Module[{p = FactorInteger[k][[;; , 1]]}, Length[p] > 1 && k >= p[[1]]! && k <= p[[-1]]!]; Select[Range[125], q] (* Amiram Eldar, Sep 20 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Mike Jones, Sep 12 2024
STATUS
approved
