An open API service indexing awesome lists of open source software.

https://github.com/cosmichorrordev/project_euler

The projecteuler.net challenges in different languages.
https://github.com/cosmichorrordev/project_euler

Last synced: 9 months ago
JSON representation

The projecteuler.net challenges in different languages.

Awesome Lists containing this project

README

          

## Project Euler

These are my solutions to the [Project Euler](projecteuler.net) challenges. The different solutions are worked out in the repsective language's folder, and are all run or timed from their `main.\*` scripts. The Explanations on different reasonings behind how the problems are solved can be found in the Explanations folder.

### Benchmarks

*Note: These solutions may use different techniques and should not be used to compare the speed of the languages*

The benchmarks will run each solution 10 times, based on the speed of these 10 times it will run the solution continuously for one minute, or 9,990 more times, whichever one will complete first. With these timings it will then calculate the mean and standard deviation of how long the solution takes to run.

#### Python

| Problem | Mean ± σ [µs] |
|:---|---:|
| Problem 1 | 1.98 ± 0.60 |
| Problem 2 | 5.76 ± 1.00 |
| Problem 3 | 555.22 ± 8.52 |
| Problem 4 | 1597.57 ± 23.13 |

#### Rust

| Problem | Mean ± σ [µs] |
|:---|---:|
| Problem 1 | 0.13 ± 0.12 |
| Problem 2 | 0.17 ± 0.27 |
| Problem 3 | 32.73 ± 2.29 |
| Problem 4 | 13.92 ± 1.14 |
| Problem 5 | 0.75 ± 0.18 |
| Problem 6 | 0.13 ± 0.15 |
| Problem 7 | 7800.45 ± 115.26 |
| Problem 8 | 4.51 ± 0.60 |
| Problem 9 | 64.96 ± 1.50 |