Some solutions to Project Euler, mainly in J