Rust solution of Project Euler