Factored out support functions that will likely be used by multiple project euler problems into shared module.