Pike v8.0 release 1738

Method Math.factor()


Method factor

array(int) factor(int x)

Description

Factorize the integer x. The returned list of factors will be sorted biggest to smallest factor.

Note

This function is only available when Pike has been compiled with bignums.

Note

In Pike versions prior to v8.0, only primes <= 8161 were considered.