Skip to content

Repository files navigation

🧮 Project Euler

DashboardSolved Challenges

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.

🛠️ Setup

Creating a Virtual Environment

python3 -m venv .venv

Activating the Virtual Environment

On macOS/Linux:

source .venv/bin/activate

On Windows:

.venv\Scripts\activate

Installing Dependencies

pip install -r requirements.txt

Deactivating the Virtual Environment

deactivate

✨ Creating a New Problem

To create a new problem template file, run the create_problem.sh script:

./create_problem.sh <number>

Example:

./create_problem.sh 2

This will create:

  • A solution file: 0002.py in the root directory

If the problem requires an input file, you can place it in the inputs/ folder (e.g. inputs/0002.txt).

🚀 Running Solutions

You can run solutions directly using Python:

python3 0002.py

Replace 0002 with the specific problem number you want to execute.

🔄 Updating Progress Summary

To update the progress summary in this README after solving new problems, run the generate_readme.py script:

python3 generate_readme.py

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages