Skip to content

Learning Rust by implementing Project Euler.

License

Notifications You must be signed in to change notification settings

kaankaraoglu/euler-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀 euler-rs

A Rust project implementing solutions to problems from Project Euler with the goal of learning ins and outs of the langugage

Build, lint and format

ToC

Solved problems (so far!)

  • Finding multiples of two given numbers below a limit.
  • Calculating the sum of Fibonacci numbers below a certain limit.
  • Finding the largest prime factor of a number.

Requirements

  • Rust installed on your machine.

Usage

Building

To build the project, use the following command:

cargo build

This will compile the project and generate the executable in the target/debug/ directory.

Linting with rustfmt

To lint the code using rustfmt for code formatting, use the following command:

cargo fmt

This will format your code according to the Rust formatting guidelines.

Running

To run the project, use the following command:

cargo run

This will execute the default target.

Contributing

If you'd like to contribute to this project, follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and submit a pull request.

License

This project is licensed under the MIT License.

About

Learning Rust by implementing Project Euler.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages