Project Euler solutions in Swift