gmp (version 0.7-4)

factorization: Factorize a number

Description

Give all primes numbers to factor the number

Usage

factorize(n)

Value

Vector of class bigz.

Arguments

n

Either integer, numeric or string value (String value: ither starting with 0x for hexadecimal, 0b for binary or without prefix for decimal values.) Or an element of class bigz.

Author

Antoine Lucas

Details

The factorization function uses the Pollard Rho algorithm.

References

The GNU MP Library, see https://gmplib.org

Examples

Run this code
factorize(34455342)

Run the code above in your browser using DataLab