Project Euler problems and other bits of maths