diff --git a/src/main.rs b/src/main.rs index e79de24..5fb0ff5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ fn main() fn test(input: BigUint) -> u8 { let mut n = factorize(input); let mut counter = 1; - while (n.to_str_radix(10).chars().count() > 0) { + while (n.to_str_radix(10).chars().count() > 1) { n = factorize(n); println!("n: {:?}", n); counter += 1;