[parent]
In a modern processor, each data size is a maximum of 64 bits. If the data size exceeds 64 bits, its computations can be handled efficiently by using the Chinese remainder theorem such that each co-prime modulus (where ) can be used to represent a big value as , where . Then, for any pair of big numbers and , we can compute and as follows:
# Note that all terms
where
are 0 modulo ,
because .
This is because
and .
Thus
is a multiple of .
# This is because as shown in step 3 in the proof of Theorem A-13.1
Thus, the Chinese remainder theorem gives us the following useful formula:
Theorem A-13.2 Application of the Chinese Remainder Theorem
Suppose there are two big numbers and where is a multiplication of co-primes , we have an isomorphism as follows:
Based on the above isomorphism, the following is true:
, where each element-wise addition/multiplication can be independently done modulo
[parent]