PrimeNu

PrimeNu[n]

gives the number of distinct primes in n.

Details and Options

  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • For a number with a unit and primes, PrimeNu[n] returns m.
  • PrimeNu[n,GaussianIntegers->True] gives the number of distinct Gaussian primes in n.
  • PrimeNu also works for rational numbers.
  • PrimeNu is an additive number theoretic function.

Examples

open allclose all

Basic Examples  (2)

gives the number of distinct prime factors:

In[1]:=
Click for copyable input
Out[1]=

Plot the sequence:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Options  (1)

Properties & Relations  (3)

See Also

FactorInteger  PrimeOmega  MoebiusMu

Introduced in 2008
(7.0)