FACTOR Function
Standard Library function that returns the prime factorization of an integer greater than 1.
Usage
result = FACTOR(i)
Input Parameters
i—An integer greater than 1.
Returned Value
result—Sorted vector of longs containing the prime factorization of i.
Keywords
a—If set, result contains all factors instead of just prime factors.
Examples
PM, FACTOR(12,/a) ; PV-WAVE prints: ; 1 ; 2 ; 3 ; 4 ; 6 ; 12 PM, FACTOR(12) ; PV-WAVE prints: ; 2 ; 2 ; 3