Project Euler Problem 21(PHP)