Skip to content

roycrippen/euler_rust

Repository files navigation

euler

Solutions to selected Project Euler problems written in Rust.

Please read the API documentation here

Build Status

Using this crate

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;

Example

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();
}

Build

cargo build --release

Run

run solution to problem 120

cargo run --release 120

run all solutions concurrently

cargo run --release

Result list will be ordered by execution time, slowest last.

About

Rust solutions to selected Project Euler problems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages