Solving Project Euler with Swift