PrimeOmega
PrimeOmega[n] gives the number of prime factors counting multiplicities Ω(n) in n.
Examples
Count prime factors with multiplicity:
PrimeOmega[12]
(* 3 - because 12 = 2*2*3 *)Compare with PrimeNu (distinct factors):
PrimeOmega[100]
(* 4 - because 100 = 2^2 * 5^2 *)Please visit the official Wolfram Language Reference for more details.