Hackerrank Project Euler Solutions