# prime_nu function

How many distinct primes divide a whole number.

## How to write it

### prime_nu(n)

**n**

A whole number. Takes a whole number.

## Examples

- $\displaystyle \operatorname{prime\_nu}(12) = 2$

  `prime_nu(12)`

  In the solver, `prime_nu(12)` gives `2`.

  [Open in the solver](https://hilberon.com/?q=prime_nu%2812%29)

## Related functions

- [prime_omega](https://hilberon.com/library/prime_omega)

  How many primes divide a whole number, counted with multiplicity.
- [previous_prime](https://hilberon.com/library/previous_prime)

  The greatest prime less than a number.
- [prime_pi](https://hilberon.com/library/prime_pi)

  How many primes are at most a number.
- [nth_prime](https://hilberon.com/library/nth_prime)

  The n-th prime, counting 2 as the first.
- [next_prime](https://hilberon.com/library/next_prime)

  The least prime greater than a number.
- [is_prime_power](https://hilberon.com/library/is_prime_power)

  Test whether a whole number is a power of a prime.

---
Source: https://hilberon.com/library/prime_nu
