Project Euler Problem 30(PHP)