One hack would be to use recursion and let stack exhaustion stop you.
The division by zero trick is pretty good too!
One hack would be to use recursion and let stack exhaustion stop you.