FrankKair / polyglot-euler

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

Crystal Ruby 021 #80

Closed FrankKair closed 6 years ago

FrankKair commented 6 years ago

How the solution works

Straightforward solution, filters a range by amicable numbers.

Performance

Crystal

Real time: 1.543 s
User time: 1.755 s
Sys. time: 0.312 s
CPU share: 133.89 %

Ruby

Real time: 0.187 s
User time: 0.163 s
Sys. time: 0.022 s
CPU share: 99.21 %