Add flush after calculating factor

This commit is contained in:
vix 2023-04-23 20:29:54 +02:00
parent 698bdf5f9a
commit f9b7423eef

View file

@ -52,6 +52,7 @@ fn print_factors_str(
writeln!(factors_buffer, "{}:{}", x, factor(x))?;
}
w.write_all(factors_buffer.as_bytes())?;
w.flush()?;
Ok(())
})
}