Python | sympy.primeomega() method
With the help of sympy.primeomega() method, we can calculate the number of prime factors counting multiplicities for a given positive integer. For example, primeomega(12) = 3, since 12 = 22 * 31. Therefore, number of prime factors = sum of multiplicities of prime factors, 2 + 1 = 3. Syntax: primeome