You've set givenNumber to 83746, and then said, "while givenNumber is not zero," keep going, and going, and going...
As long as givenNumber has a non-zero value, the loop will keep repeating. So within your loop,
you should be setting givenNumber to the next value -- or to zero if you want to stop.