# Does time or space complexity of arithmetic operations get affected by the number of digits?

Suppose I have two 5-digit numbers (A and B) and two 50-digit numbers(C and D). Do the operations A+B and C+D have equal complexity in terms of time and space? or C+D is more complex due to the size of digits?

However, for example, if you use a random access machine, the time and space complexity of an arithmetic operation of any-digit numbers is considered to be $$O(1)$$.