Swift solutions to Project Euler problems