prime_omega function
How many primes divide a whole number, counted with multiplicity.
How to write it
prime_omega(n)
- n
- A whole number. Takes a whole number.
Examples
prime_omega(12)In the solver,
Open in the solverprime_omega(12)gives3.
Related functions
- prime_pi
How many primes are at most a number.
- prime_nu
How many distinct primes divide a whole number.
- previous_prime
The greatest prime less than a number.
- nth_prime
The n-th prime, counting 2 as the first.
- next_prime
The least prime greater than a number.
- is_prime_power
Test whether a whole number is a power of a prime.