The conditional here only makes it stop when it reaches 100. The solution can be adapted to use a while loop if you’re okay with it running indefinitely.
One hack would be to use recursion and let stack exhaustion stop you.
The division by zero trick is pretty good too!