I have written this program to perform ulam\'s conjecture on an entered integer, however when entering a number such as 38836, it exceeds the bounds for a 16 bit signed integer.
At least in my case, this issue was fixed by using a seperate command that specified the input as unsigned, called GETDEC$. This fixed the issue and allowed the range of integers for unsigned 16 bit, rather than signed.