FrankKair / polyglot-euler

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

Lua java 001 #38

Closed FrankKair closed 6 years ago

FrankKair commented 6 years ago

How the solution works

Pretty simple for loop filtering % 3 == 0 and % 5 == 0.

Performance

Lua

Real time: 0.024 s
User time: 0.003 s
Sys. time: 0.018 s
CPU share: 87.86 %

Java

Real time: 1.402 s
User time: 1.492 s
Sys. time: 0.263 s
CPU share: 125.21 %