I know that doing arithmetic on large integers to the brain, although perhaps quite tedious at times, is quite possible.
However, what I'm interested in is that generally acceptable methods are best suited for inputting large integers (or even strings, as I suppose) as input.
Most compilers / interpreters allow you to immediately enter full lines as input (and then each character is read individually with ,). But I wonder how this can be done if you do not know when the input stream will stop? I guess one way is to tell the user to add a specific character / character string to their number to indicate that it has ended, but this seems a bit unacceptable.
I would prefer an answer that retains mobility in mind (specific solutions for implementation are of interest, but are not the main focus of this issue). If there is no fully realizable - agnostic method for this, then the one that will work on most implementations and unsuccessfully elegantly will be the next best.
Thanks in advance.
source
share