https://github.com/myterminal/project-euler-solutions
My solutions to ProjectEuler problems in different programming languages
https://github.com/myterminal/project-euler-solutions
projecteuler projecteuler-solutions
Last synced: 10 months ago
JSON representation
My solutions to ProjectEuler problems in different programming languages
- Host: GitHub
- URL: https://github.com/myterminal/project-euler-solutions
- Owner: myTerminal
- License: other
- Created: 2020-02-04T04:41:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T23:52:21.000Z (about 4 years ago)
- Last Synced: 2025-01-17T05:29:40.894Z (12 months ago)
- Topics: projecteuler, projecteuler-solutions
- Language: JavaScript
- Homepage: https://projecteuler.net/progress=myTerminal
- Size: 183 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# project-euler-solutions
[](https://creativecommons.org/licenses/by-nc-sa/4.0)
My solutions to ProjectEuler problems in different programming languages
(in continuation to [project-euler-solutions-legacy](https://github.com/myTerminal/project-euler-solutions-legacy))
## Programming languages
1. [JavaScript](solutions/javascript)
2. [Common Lisp](solutions/common-lisp)
3. [Rust](solutions/rust)
## Running a solution
In order to run a solution to a particular problem in a particular language, use the `run` command as:
./run
where `language` should be one of the names mentioned above, in small-case and `problem-number` should be a number.
For example, in order to run the solution to problem number 1 in Rust, you can run:
./run rust 1
## Measuring solution running time
To measure the time taken for running a solution, run it with `perf`. For example, to measure the time for problem number 1 in Rust, you can use:
./perf ./run rust 1
The number of milliseconds spent will be displayed.
**Note:** The number of milliseconds also include the time spent for other tasks like validating the environment, checking if the solution exists, and even the compilation time for the languages that need compilation, etc. and may not represent the exact time taken for the solution.
## Dependencies
1. [awk](https://www.gnu.org/software/gawk/manual)
## More
1. My first project on GitHub: [project-euler-solutions-legacy](https://github.com/myTerminal/project-euler-solutions-legacy)