Functions to help out with common project Euler tasks