euler-rs

Crates.ioeuler-rs
lib.rseuler-rs
version0.1.0
sourcesrc
created_at2024-11-26 15:13:23.406361
updated_at2024-11-26 15:13:23.406361
descriptionA command line tool for solving Project Euler problems in Rust
homepagehttps://github.com/abbasio/euler-rs
repositoryhttps://github.com/abbasio/euler-rs
max_upload_size
id1461789
size60,842
Omar Abbasi (abbasio)

documentation

README

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

  1. Install Rust and Cargo
  2. Run the following command from your terminal:
cargo install euler-rs

Usage

  1. Navigate to whichever directory you want your work to be stored in
$ mkdir ~/project-euler
$ cd ~/project-euler 
  1. Call euler-rs using the following command, where <p> is the problem number you want to generate a template for.
$ euler-rs --problem <p>
  1. 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.
  2. 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

Commit count: 27

cargo fmt