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. Writes directly to a buffer to avoid per-number String allocation.