My work on Problem #1 for the Euler project