Skip to content. | Skip to navigation

Personal tools
You are here: Home Programming Python Project Euler

Project Euler

The Euler exercises implemented in Python.

Project Euler is:
series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems. The motivation [...] is to provide a platform for the inquiring mind to delve into unfamiliar areas and learn new concepts in a fun and recreational

While Euler is in some senses more about maths than computation, it's a neat exercises for practicing programming and learning more about your favourite programming language. This section of the site is a record of my solutions for the Euler problems. Problems will probably have more than one solution, and be added to and modified as time passes.

Document 001 - find the sum of all multiples
Find the sum of all the multiples of 3 or 5 below 1000.
Document 002 - find the sum of the fibonacci sequence
Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed one million.
Document 003 - prime factors
Find the largest prime factor of 317584931803.
Document 004 - palindromic numbers
Find the largest palindrome made from the product of two 3-digit numbers.
Document 005 - evenly divisible
What is the smallest number that is evenly divisible by all of the numbers from 1 to 20?
Document 006 - sum of squares less square of sums
Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
Document 007 - 10001st prime
What is the 10001st prime number?
Document 008 - paths across grid
Find the greatest product of five consecutive digits in a 1000-digit number.
Document 009 - Pythagorean triplets
Find the Pythagorean triplet (a62 + b^2 = c^2) for which a + b + c = 1000.
Document 010 - sum of primes
Find the sum of all the primes below one million.
Document 015 - paths across grid
How many routes are there through a 20x20 grid?
Document 016 - sum a power of 2
What is the sum of the digits of the number 2^1000?
Document 017 - sum a power of 2
If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used?
Document 020 - sum factorial digits
Find the sum of the digits in the number 100!
Document 035 - counting circular primes
How many circular primes (primes that when rotated are still primes) are there below one million?
Document 112 - counting bouncy numbers
Find the point at which the proportion of bouncy numbers is 99%.
Document Actions
Visitors
Locations of visitors to this page
Ads
 
Sections