damn, nobody told me that I could just continue the loop until the result was <10
What was I thinking?!
_________________________