solved euler53.py