prob-5

Benchmark created on


Description

http://stackoverflow.com/questions/5952287/why-is-this-java-code-6x-faster-than-the-identical-c-code

prob5 of euler

Preparation HTML

<script>
  function prob5() {
    var i = 20;
    while (true) {
      if (
        (i % 19 === 0) &&
        (i % 18 === 0) &&
        (i % 17 === 0) &&
        (i % 16 === 0) &&
        (i % 15 === 0) &&
        (i % 14 === 0) &&
        (i % 13 === 0) &&
        (i % 12 === 0) &&
        (i % 11 === 0)
      )
        { break; }
      i += 20;
    }
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
t1
prob5()
ready
t2
prob5()
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.