Modified find_nums to handle numbers less than 100,000.