Move method into Rust's Euler library.