factorize verbosity fix

This commit is contained in:
Christoph J. Scherr 2023-05-27 18:08:18 +02:00
parent 44e2a6876e
commit 8a69fa04d1
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
1 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ pub fn prime_factors(mut n: u128, verbose: bool) -> Vec<u128> {
else {
n = n.checked_div(i).expect("n / i is not an integer");
factors.push(i);
}
if verbose {
println!("i={i}\t{:?}", factors);
if verbose {
println!("i={i}\t{:?}", factors);
}
}
}
if n > 1 {