Euler-47#Solved.