Skip to content

Eppie/euler

Repository files navigation

Project Euler Solutions

This repository contains all the solutions I've written so far to the Project Euler problems. There is a file called timings.txt, which contains timings of each of the solutions. My goal is to solve each problem in under 1 second, and so far, I've been successful. You can use the following commands to get and make my solutions (along with the tests):

git clone https://github.com/Eppie/euler.git
cd euler
cmake .
make
./euler 1

This will run the solution to problem 1. If you want to run all the solutions, you can execute:

./run.sh

This will also overwrite the timings.txt file with your timings.

You'll notice that there is a folder called test. This folder contains a test case for each solution, along with some other unit tests. In order to make the tests, you will require Google Test. On Fedora, you can get it by running:

sudo dnf install gtest

You can then execute the tests by running:

./runTests

About

Project Euler solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published