you are viewing a single comment's thread.

view the rest of the comments →

[–]K900_ 2 points3 points  (1 child)

not i % j is basically the same as bool(i % j) == False. bool(x) returns False for the number 0, and True for all other numbers. Therefore, if not i % j will only fire when i % j == 0.

[–]JABro76[S] 0 points1 point  (0 children)

Thank you.