Trying out some Project Euler problems with hilariously inefficient algorithms