You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the BigInteger trait is missing the modulus operation, i.e., the possibility of computing a % b at least for two positive BigIntegers. To implement this, we can refer to "The Art Of Computer Programming" by Donald Knuth, Section 4.3, Algorithm D. Such algorithm implement division with remainder, and it can be directly used to compute the modulus.
The text was updated successfully, but these errors were encountered:
I found that the BigInteger trait is missing the modulus operation, i.e., the possibility of computing
a % b
at least for two positive BigIntegers. To implement this, we can refer to "The Art Of Computer Programming" by Donald Knuth, Section 4.3, Algorithm D. Such algorithm implement division with remainder, and it can be directly used to compute the modulus.The text was updated successfully, but these errors were encountered: