diff --git a/src/math/factorise.rs b/src/math/factorise.rs index 244aec7..33af27a 100644 --- a/src/math/factorise.rs +++ b/src/math/factorise.rs @@ -19,9 +19,9 @@ pub fn prime_factors(mut n: u128, verbose: bool) -> Vec { 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 {