// archives

Archive for May, 2009

Project Euler 24 Solution

What is the millionth lexicographic permutation of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9?

Project Euler 27 Solution

Find a quadratic formula that produces the maximum number of primes for consecutive values of n.

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.

Project Euler 51 Solution

Find the smallest prime which, by replacing part of the number with the same digit, is part of an eight prime value set.

Project Euler 59 Solution

Using a brute force attack, decrypt the cipher using XOR encryption

Project Euler 82 Solution

Find the minimal path sum from the left column to the right column.

Project Euler 99 Solution

Find the base/exponent pair in the file has the greatest numerical value