Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hph/project-euler
- Owner: hph
- Created: 2012-09-28T18:16:46.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-07T00:20:28.000Z (about 12 years ago)
- Last Synced: 2024-10-13T07:20:51.042Z (25 days ago)
- Language: Python
- Homepage: http://projecteuler.net/problems
- Size: 141 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 | 9110846700And 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