Answer for Euler Problem 1.