Common methods used for ProjectEuler.net