solved up to problem 20 in Rust; BigInt is slow :(