This repository contains my solutions for Project Euler problems.
Project Euler is a series of challenging mathematical/computer programming problems that require more than just mathematical insights to solve.
python3 -m venv .venvOn macOS/Linux:
source .venv/bin/activateOn Windows:
.venv\Scripts\activatepip install -r requirements.txtdeactivateTo create a new problem template file, run the create_problem.sh script:
./create_problem.sh <number>Example:
./create_problem.sh 2This will create:
- A solution file:
0002.pyin the root directory
If the problem requires an input file, you can place it in the inputs/ folder (e.g. inputs/0002.txt).
You can run solutions directly using Python:
python3 0002.pyReplace 0002 with the specific problem number you want to execute.
To update the progress summary in this README after solving new problems, run the generate_readme.py script:
python3 generate_readme.py