1 unstable release
0.1.0 | Nov 26, 2024 |
---|
#503 in Math
138 downloads per month
18KB
205 lines
euler-rs
This project is a command line tool that streamlines the process of solving Project Euler in Rust. You can use euler-rs to both generate a template file for solving any given Project Euler problem, and to check your solutions for correctness.
Installation
- Install Rust and Cargo
- Run the following command from your terminal:
cargo install euler-rs
Usage
- Navigate to whichever directory you want your work to be stored in
$ mkdir ~/project-euler
$ cd ~/project-euler
- Call euler-rs using the following command, where <p> is the problem number you want to generate a template for.
$ euler-rs --problem <p>
- euler-rs will create a
problems
directory for you with a template file for the problem inside. See here for an example of a generated template file. - Once you've attempted a solution, you can once again run the same command to evaluate your solution.
$ euler-rs --problem <p>
Solutions are taken from lucky-bai's repository
Dependencies
~11–23MB
~327K SLoC