Submitted solution to Euler problem #3.