debugged euler2.py