Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Number Theory > Prime Numbers > PrimeNu >
Mathematica > Mathematics and Algorithms > Mathematical Functions > Number Theoretic Functions > Prime Numbers > PrimeNu >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF