Skip to main content

Module factor

Module factor 

Source

Functions§

factorize
Return the sorted list of prime factors of n (with repetition). For n <= 1, returns an empty vector.
format_factors
Format a factorization result as “NUMBER: FACTOR FACTOR …” matching GNU factor output. Uses stack-allocated buffer to avoid heap allocations for the common case.