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.