Ipython Code for projecteuler.net problems