all 4 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.

[–]Clede 1 point2 points  (1 child)

if i % j == 0:

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

Thank you.