What if the 23 prisoners were to agree to ask the question once a year, drawing straws to determine the asking order? They might lose a few to the alligators, but eventually the rest would be freed.