1. Giving a negative remainder
1 mark each time, and a wrong encryption in an RSA problemWhat not to write
“, that's what my calculator shows.”
What to write
“, so : the remainder of a Euclidean division always belongs to .”
Why: The operator of the C family of languages returns a remainder with the sign of the dividend, which is not the mathematical definition. In Python and in mathematics, the remainder is nonnegative.