Project Euler Homework

File List

Here is a list of all documented files with brief descriptions:
001.cpp [code]Add all the natural numbers below one thousand that are multiples of 3 or 5
002.cpp [code]By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms
003.cpp [code]Find the largest prime factor of a composite number
004.cpp [code]Find the largest palindrome made from the product of two 3-digit numbers
005.cpp [code]What is the smallest number divisible by each of the numbers 1 to 20?
006.cpp [code]What is the difference between the sum of the squares and the square of the sums?
007.cpp [code]Find the 10001st prime
008.cpp [code]Discover the largest product of five consecutive digits in the 1000-digit number
009.cpp [code]Find the only Pythagorean triplet, {a, b, c}, for which a + b + c = 1000
010.cpp [code]Calculate the sum of all the primes below two million
011.cpp [code]What is the greatest product of four numbers on the same straight line in the 20 by 20 grid?
012.cpp [code]What is the value of the first triangle number to have over five hundred divisors?
013.cpp [code]Find the first ten digits of the sum of one-hundred 50-digit numbers
014.cpp [code]Find the longest sequence using a starting number under one million
015.cpp [code]Starting in the top left corner in a 20 by 20 grid, how many routes are there to the bottom right corner?
016.cpp [code]What is the sum of the digits of the number 2^1000?
017.cpp [code]How many letters would be needed to write all the numbers in words from 1 to 1000?
018.cpp [code]Find the maximum sum travelling from the top of the triangle to the base
019.cpp [code]How many Sundays fell on the first of the month during the twentieth century?
020.cpp [code]Find the sum of digits in 100!
021.cpp [code]Evaluate the sum of all amicable pairs under 10000
022.cpp [code]What is the total of all the name scores in the file of first names?
023.cpp [code]Find the sum of all the positive integers which cannot be written as the sum of two abundant numbers
024.cpp [code]What is the millionth lexicographic permutation of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9?
025.cpp [code]What is the first term in the Fibonacci sequence to contain 1000 digits? The Fibonacci sequence is defined by the recurrence relation:
026.cpp [code]Find the value of d < 1000 for which 1/d contains the longest recurring cycle
026_prime_table.h [code]
027.cpp [code]Find a quadratic formula that produces the maximum number of primes for consecutive values of n
028.cpp [code]What is the sum of both diagonals in a 1001 by 1001 spiral?
029.cpp [code]How many distinct terms are in the sequence generated by ab for 2 <= a <= 100 and 2 <= b <= 100?
030.cpp [code]Find the sum of all the numbers that can be written as the sum of fifth powers of their digits
031.cpp [code]In England the currency is made up of pound and pence, and there are eight coins in general circulation:
032.cpp [code]Find the sum of all numbers that can be written as pandigital products
032_permutation.h [code]
032_times_minus.h [code]
033.cpp [code]
034.cpp [code]
035.cpp [code]
036.cpp [code]
037.cpp [code]
039.cpp [code]
040.cpp [code]
041.cpp [code]We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once. For example, 2143 is a 4-digit pandigital and is also prime
041_prime_table.h [code]
042.cpp [code]
043.cpp [code]The number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it also has a rather interesting sub-string divisibility property
043_permutation.h [code]
045.cpp [code]
048.cpp [code]
052.cpp [code]
053.cpp [code]How many values of C(n,r), for 1 <= n <= 100, exceed one-million?
056.cpp [code]
056_bigN.h [code]
067.cpp [code]
097.cpp [code]
 All Classes Files Functions Variables