really big integers exposed stack overflow bugs in number scanner; fixed by switching from recursive to iterative