// archives

Archive for May, 2009

Project Euler 135 Solution

Determining the number of solutions of the equation x2 − y2 − z2 = n.

Common Functions and Routines for Project Euler

Common functions and helpful tools used to solve problems in Project Euler: Downloadable source: Euler.py source A set of routines used to help solve math problems. Euler.py is included as needed. The example below shows typical Python usage: from Euler import is_prime, is_perm Here is the contents of Euler.py from math import sqrt, ceil import […]

Project Euler 121 Solution

Investigate the game of chance involving colored discs.

Project Euler 4 Solution

Find the largest palindrome made from the product of two 3-digit numbers.

Project Euler 5 Solution

Find the smallest number divisible by each of the numbers 1 to 20.

Project Euler 12 Solution

Find the value of the first triangle number to have over five hundred divisors

Project Euler 28 Solution

Find the sum of both diagonals in a square spiral.

Project Euler 40 Solution

Compose Champernowne’s constant

Project Euler 46 Solution

Find the smallest odd composite that cannot be written as the sum of a prime and twice a square.

Project Euler 47 Solution

Find the first four consecutive integers to have four distinct primes factors.