Project Euler Problem1 on PHP