Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Solutions to Project Euler using Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Python solutions to Project Euler problems

This also serves as an example of how to set up a Python package using distribute.

I used this helpful Python packaging tutorial as a guide, and also I made use of this guide to repository structure in order to separate the tests from the main package.

To run tests

I recommend using nose for testing.

$ python nosetests

To install the package project_euler

$ python install

To run an answer

Answer scripts are installed where distribute installs them (for me it is /usr/local/share/python). If you have the script directory in your PATH, you should be able to run

$ project_euler_answer1
Something went wrong with that request. Please try again.