Project Euler Problem 21