Project Euler done in Swift.