Project Euler, in Swift.