#euler #cli #puzzle #command-line-tool

app euler-rs

A command line tool for solving Project Euler problems in Rust

1 unstable release

0.1.0 Nov 26, 2024

#503 in Math

Download history 131/week @ 2024-11-25 7/week @ 2024-12-09

138 downloads per month

MIT/Apache

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

  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

Dependencies

~11–23MB
~327K SLoC