Python: add script for solve Euler Problem 5