Solutions for Project Euler, Problem 1-8, Language:Python