Solution to problems from ProjectEuler.net