Solutions for Project Euler and the like