solving projecteuler problems in python