From aceac2b4a6bf56ca9fdf51f19b528462f2f30d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Fri, 22 Mar 2019 16:27:22 +0000 Subject: [PATCH] Update main.rs --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;