+ 1

If a and b: b = ac where a, b, c are integers, and if x % b or x % a over the same loop both output the same thing,

the loop op for b is c times faster, right, for multiples of a that aren't also multiples of b are implicitly skipped by "continue"? (there's another conditional that renders the outputs the same) I mean I compared both, among other things(dull eyesore) but it seems they are too close and the one with b is not necessarily always the faster one. Unless other unrelated background CPU operations are at play, ***do you think such exception is possible on principle?***

25th Apr 2022, 9:22 AM
Korkunç el Gato
Korkunç el Gato - avatar
5 Antworten