The code uses 10**76 directly (close to \(2^{256}\)) in lines like:
Although 10**76 itself fits in 256 bits, its very near the upper limit. Any future attempt to use 10**77 would exceed 2^{256} and revert. 
