my solution to Project Euler in python