Skip to content

PrimeNu

The number of distinct prime factors of n.

PrimeNu(n)number of distinct prime factors of .

Domain: Number theory

Details
  • Counts distinct primes only -- , not 5.
  • Equal to the length of FactorInteger.
  • : 1 has no prime factors.
  • Always , with equality exactly when is squarefree. See PrimeOmega.

Examples

See also: PrimeOmega, FactorInteger