Python: add script for solve Euler Problem 8