Skip to main content

format_factors

Function format_factors 

Source
pub fn format_factors(n: u128) -> String
Expand description

Format a factorization result as “NUMBER: FACTOR FACTOR …” matching GNU factor output. Uses stack-allocated buffer to avoid heap allocations for the common case.