34
loading...
This website collects cookies to deliver better user experience
primesToTest[0] == 2
which will always be true. You can try setting it to 3 which will take a long while and you can see that it will only stop at that point.num % 2 == 0
as a condition that will always be false. Since the line above that line checks if a number is even which it never will be. Flipping this condition to num % 2 == 1
will always be true and the breakpoint will be hit.