Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Solutions to Project Euler using Python
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
project_euler
tests
.gitignore
MANIFEST.in
README.md
distribute_setup.py
setup.py

README.md

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 setup.py nosetests

To install the package project_euler

$ python setup.py 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.