Number of prime divisors (with multiplicity)
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
numlib::Omega(a) returns, for a given positive
a, the finite sum
, where p runs
through all primes, and α(p, a) denotes
the highest exponent for which pα divides
In contrast to
the prime factor 2 of 120 is
The same happens here:
numlib::Omega returns a positive integer.