Help


from Wikipedia
« »  
Most computers have a conditional branch instruction that tests the sign of a value in a register, or the sign of the result of the most recent arithmetic operation.
One can use that instruction, which is usually faster than a comparison against some arbitrary value ( requiring a subtraction ), to implement the command " If i ≤ 0, then exit the loop ".

2.454 seconds.