OFFSET
1,1
FORMULA
EXAMPLE
840 is a term since 840 = 2 * 2 * 2 * 3 * 5 * 7 has 6 prime factors and 4 distinct prime factors, and both 6 and 4 are composite.
MATHEMATICA
Select[Range[2000], CompositeQ[PrimeOmega[#]]&&CompositeQ[PrimeNu[#]]&] (* James C. McMahon, Feb 13 2025 *)
PROG
(Python)
from sympy import factorint, isprime
def ok(n):
f = factorint(n)
w, W = len(f), sum(e for e in f.values())
return w > 3 and W > 3 and not isprime(w) and not isprime(W)
print([k for k in range(1, 2000) if ok(k)]) # Michael S. Branicky, Feb 07 2025
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Marc Morgenegg, Feb 05 2025
STATUS
approved