The Problem: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. My solution (in Java): Straightforward problem. As always, I love feedback on how this solution could be improved!

# Solution: Project Euler Problem 5

The Problem: What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20 My Solution (in C++):

# Solution: Project Euler Problem 4

The Problem: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99. Find the largest palindrome made from the product of two 3-digit numbers. My solution (in C++): Comment if you know a way to think about this problem that leads to […]

# Solution: Project Euler Problem 3

The Problem: What is the largest prime factor of the number 600851475143 ? My solution (in C++): This may be faster if I pre-generate primes less than the input using the Sieve of Eratosthenes method, then dividing by those primes.

# Solution: Project Euler Problem 2

The problem: By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms. My solution (in python):

# Solution: Project Euler Problem 1

The problem: Find the sum of all the multiples of 3 or 5 below 1000. My solution was just to use the principle of inclusion/exclusion. No code necessary.

# Projects From School Post 1

Here I will upload either direct source code or links to my code stored on github. Currently, I am away from school and do not have access to the source code, but as soon as Winter Break is over, I will upload some of my work from last semester.

# Project Euler Solutions

In addition to my work at school and on Programming Praxis exercises, I spend time working on problems from Project Euler. Currently, I have solved 13 problems. My solutions can be found here. I trust my visitors will not use my solutions to cheat on Project Euler problems. First, that’s unethical. Second, there are many […]

# Solution: Petals Around The Rose, Dec. 18, 2012

Here is my solution to the Programming Praxis problem for Dec. 18, 2012. It is written in Python, which proved to be quite straightforward. The task: Implement the Petals Around The Rose Game! (see link for more details) My solution:

# Solution: 2013 Equations, Jan. 1, 2013

Here’s my solution to the problem for Jan. 1, 2013. The solution is written in Python. The task: As we begin the new year, we note that 109-8*7+654*3-2/1 = 2013. There are three other combinations of the numbers 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, in order, combined with the five operators […]