Closed FrankKair closed 6 years ago
Pretty simple for loop filtering % 3 == 0 and % 5 == 0.
for
% 3 == 0
% 5 == 0
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 %
How the solution works
Pretty simple
for
loop filtering% 3 == 0
and% 5 == 0
.Performance
Lua
Java