solutions to project Euler, not input checking