pub fn write_factors(n: u128, out: &mut Vec<u8>)
Write factorization of a u128 to a buffer. Falls through to the u64 fast path when possible.