FrankKair / polyglot-euler

📜 Project Euler solutions in various programming languages
MIT License
74 stars 14 forks source link

Refactor: Swift 010 (Optimisation) #47

Closed FrankKair closed 6 years ago

FrankKair commented 6 years ago

How the solution works

Optimizes Swift 010 using Sieve of Eratosthenes.

Performance

Swift

Real time: 2.604 s
User time: 2.482 s
Sys. time: 0.085 s
CPU share: 98.58 %