Why is MOD operation more expensive than multiplication by a bit more than a factor of 2? Please be more specific about how CPU perfor
MOD
multiplication
factor of 2
Yes, mod is more expensive than multiplication, as it is implemented through division. (CPUs generally return both quotient and remainder on division.) But both of your threads use multiplication. copy/paste error?