Project Euler Problem 112(PHP)