modified:   euler50.py