solved problem 21 Project Euler