Documentation Center

  • Trial Software
  • Product Updates

numlib::omega

Number of prime factors of an integer

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

numlib::omega(n)

Description

numlib::omega(n) returns the number of prime factors of the integer n, counted without multiplicity.

numlib::numprimedivisors and numlib::omega are synonyms.

numlib::omega(0) returns 0.

numlib::omega returns the function call with evaluated argument if the argument is not a number.

numlib::omega returns an error if the argument evaluates to a number of wrong type.

Examples

Example 1

We compute the number of primes dividing 6746328388800:

numlib::numprimedivisors(6746328388800)

Parameters

n

An integer

Return Values

numlib::numprimedivisors(n) returns a nonnegative integer.

Algorithms

Internally, ifactor is used for factoring n.

See Also

MuPAD Functions

Was this topic helpful?