– Click again to toggle Play/Stop.
I love math, programming, and problem solving. Project Euler is a website where all of these passions I have come together in perfect harmony. The site provides users with mathematics challenges that mostly require the use of programming to solve, but in some cases pen(cil) and paper work just as well. However you decide to approach the problems, the goal is that you learn more and dive deeper into the infinitely boundless and beautiful world of mathematics and programming.
My Approach
Solving problems on Project Euler is a great way to learn and/or strengthen ones programming skills. Whether you’ve just picked up a new (or old) language and want to try it out, or if your working on refactoring a current solution that you’ve already coded in one particular language, there’s plenty of opportunity for growth on Project Euler. This can also be said about the mathematics side of things. One can learn new concepts or reinforce already learned concepts. Project Euler is for me a place where I go to achieve all of these things.
My Solutions
My solutions are provided below. Each solution is linked to its own post where I describe the problem solving process in some detail. The provided solutions will be in one or many different programming languages, or perhaps it’s one of those that I did with pencil and paper. It is my intention to come back to old solutions and improve on them from time to time. I will do my best to document any changes that I’ve made so it’s clearer to see how my thought process or insights changed with time and new information.
- P1: Find the sum of all the multiples of 3 or 5 below 1000.
- P2: By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
- P3: What is the largest prime factor of the number 600851475143 ?
- P4: Find the largest palindrome made from the product of two 3-digit numbers.
- P5: What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
- P6: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
- P7: What is the 10,001st prime number?
- P8: Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product?
- P9: There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc.
- P10: Find the sum of all the primes below two million.
- P11:
- P12: What is the value of the first triangle number to have over five hundred divisors?
- P13: Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.