1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
from rithm._crithm import Int, Int2 def summator(cls): values = [cls(raw) for raw in range(1, 10**6 + 1)] return sum(values) def main() -> None: x = summator(Int) y = summator(Int2) assert str(x) == str(y) main()