Euler is a command-line utility thoughtfully designed to simplify the process of solving Project Euler challenges using Python. This versatile tool is centered around four primary functions:
- Problem Retrieval: Conveniently fetch problems, associated files, and images from Project Euler for local reference.
- Code Generation: Generate basic Python template files (with potential support for additional languages in the future).
- Solution Validation: Verify the correctness of your solutions to Project Euler problems, ensuring that you're on the right track.
- Utility Functions: Access a range of utility functions that can aid you in tackling complex problems more effectively.
To begin, clone the Git repository by entering the following command in your terminal/command prompt:
git clone https://github.com/i13e/euler.git
Once you have cloned the repository, navigate to its directory and create a new Python virtual environment by running:
cd euler
python -m venv env
Activate the environment by running either of the following commands based on your operating system:
source env/bin/activate # Mac or Linux
env\Scripts\activate # Windows
Next, install the packages listed in the requirements.txt
file using the
following command:
pip install -r requirements.txt
You're now ready to go! Once you've finished, you can exit the environment by running the following command (or simply close the terminal):
deactivate