Java - Looping Through A Range of BigInteger Values

Recently, I was just coding something and came across a situation, where I'd to loop through a range of BigInteger values. I'd to think a bit to work on this, as I haven't worked extensively on arbitrary precision arithmetic. Below is an example of how to loop through a range of BigInteger values: