Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hph/project-euler

Solutions to some problems on Project Euler in Python.
https://github.com/hph/project-euler

Last synced: 10 days ago
JSON representation

Solutions to some problems on Project Euler in Python.

Awesome Lists containing this project

README

        

Project Euler
=============
Sample output with Python 2.7.3:

$ python solutions.py
# | Time (s) | Solution
------------------------------
001 | 0.000111 | 233168
002 | 0.000007 | 4613732
003 | 0.001939 | 6857
004 | 0.157553 | 906609
005 | 0.000051 | 232792560
006 | 0.000023 | 25164150
007 | 0.084847 | 104743
008 | 0.002324 | 40824
009 | 0.022414 | 31875000
010 | 2.696498 | 142913828922
015 | 0.000036 | 137846528820
016 | 0.000146 | 1366
020 | 0.000071 | 648
029 | 0.013155 | 9183
048 | 0.009005 | 9110846700

And with PyPy 1.8.0 and GCC 4.6.2:

$ pypy solutions.py
# | Time (s) | Solution
------------------------------
001 | 0.000263 | 233168
002 | 0.000022 | 4613732
003 | 0.006126 | 6857
004 | 0.068710 | 906609
005 | 0.000048 | 232792560
006 | 0.000115 | 25164150
007 | 0.072180 | 104743
008 | 0.018570 | 40824
009 | 0.006638 | 31875000
010 | 0.637430 | 142913828922
015 | 0.000066 | 137846528820
016 | 0.001929 | 1366
020 | 0.000634 | 648
029 | 0.020932 | 9183
048 | 0.016131 | 9110846700