Update euler47.py