Project Euler Problem 63(PHP)