AngouriMath

Try it live

Navigation

← Back to list of members

Factorize

 Method (no overloads)

Summary

The prime factorisation of a positive integer: each prime that divides it with its power, the
smallest prime first. Empty for 1, the empty product.

Exception "InvalidNumberException"

Thrown where the integer is 0 or negative. 0 has no factorisation into primes, and a negative
integer factors as -1 times the factorisation of its absolute value, which a list of primes
cannot write; so neither is answered as a list, which would claim the integer is 1 or its
absolute value. https://github.com/asc-community/AngouriMath/issues/2466

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6091 pages online