Lots of simple math helpers for Project Euler. Nothing novel here, and most of it is thrown together in just a few minutes :).