Solutions to selected Project Euler problems written in Rust.
Please read the API documentation here
Just add the following to your Cargo.toml:
[dependencies.euler]
git = "https://github.com/roycrippen/euler"
And add this to your root crate.
extern crate euler_rust;extern crate euler_rust;
fn main() {
// test solution 16
assert_eq!(euler_rust::euler_p011_020::p016(), "p016 = 1366");
// run all solutions concurrently
euler_rust::run_all();
}cargo build --releaserun solution to problem 120
cargo run --release 120run all solutions concurrently
cargo run --releaseResult list will be ordered by execution time, slowest last.