Update main.rs

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-03-22 16:27:22 +00:00
parent 533c13876f
commit aceac2b4a6
1 changed files with 1 additions and 1 deletions

View File

@ -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;