Project Euler Solutions Hackerrank Python