Some Euler work in PHP (generally)