This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

PrimeNu

PrimeNu[n]
gives the number of distinct primes in n.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • For a number with a unit and primes, PrimeNu[n] returns m.
  • PrimeNu also works for rational numbers.
  • PrimeNu is an additive number theoretic function.
gives the number of distinct prime factors:
Plot the sequence:
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]=
Evaluate for large arguments:
PrimeNu works over Gaussian integers:
PrimeNu threads element-wise over lists:
TraditionalForm formatting:
Number of prime factors of Gaussian integers:
PrimeNu is an additive function:
The number of prime factors can be found using FactorInteger:
New in 7