/project-euler

My answers to Project Euler (https://projecteuler.net/)

Primary LanguageRustApache License 2.0Apache-2.0

Project Euler problems

See https://projecteuler.net/

Installation

Rust and Cargo toolchain needed.

Usage

List all solved problems:

cargo run -- -h

Solve Euler 2:

cargo run -- euler_2

Execution sample

Benchmarking solutions

In order to benchmark solutions I added support for the excellent Criterion module.

Use cargo bench to run all benchmarks.

Criterion uses statistical analysis and compares each run to the previous one in order to detect improvement or regression. Graphs are generated in target/criterion.

Use open target/criterion/report/index.html to show all statistics:

Criterion sample

Authors

License

All code is published under the Apache 2.0 License.