numlib::numprimedivisors
-- number of
prime factors of an integernumlib::numprimedivisors
(n)
returns the
number of prime factors of the integer n
, counted without
multiplicity.
numlib::numprimedivisors(n)
n |
- | an integer |
numlib::numprimedivisors
(n)
returns a
nonnegative integer.
numlib::primedivisors
,
numlib::numdivisors
numlib::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.We compute the number of primes dividing :
>> numlib::numprimedivisors(6746328388800)
9
ifactor
is used for factoring
n
.