Owning Class: basic
Requires: MathScript RT Module
c = factor(a)
Computes the prime factorization of a given number. A number is prime if and only if the number is a positive integer with exactly one positive divisor other than 1.
Name | Description |
---|---|
a | Specifies the number you want to factor. a is a positive integer. a has an upper limit of 2^32-1. |
Name | Description |
---|---|
c | Returns the set of prime numbers whose product equals a. c is a row vector of primes. The factors in c might repeat. For example, factor(16) returns the vector [2, 2, 2, 2]. |
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | Yes |
Supported on RT targets | Yes |
Suitable for bounded execution times on RT | Not characterized |
C = factor(1000001)