numlib::numprimedivisors -- number of
prime factors of an integer
Introductionnumlib::numprimedivisors(n) returns the
number of prime factors of the integer n, counted without
multiplicity.
Call(s)numlib::numprimedivisors(n)
Parametersn |
- | an integer |
Returnsnumlib::numprimedivisors(n) returns a
nonnegative integer.
Related
Functionsnumlib::primedivisors,
numlib::numdivisors
Detailsnumlib::numprimedivisors(0) returns
0.numlib::numprimedivisors returns the function call
with evaluated argument if the argument is not a number.numlib::numprimedivisors returns an error if the
argument evaluates to a number of wrong type.
Example
1We compute the number of primes dividing :
>> numlib::numprimedivisors(6746328388800)
9
Backgroundifactor is used for factoring
n.