A king decides to test his 100 prisoners by giving them a life-threatening challenge. He has a 1000-bottle wine cellar, and one of the bottles contains poison. He wants the prisoners to determine which bottle contains the poison by the end of the day, otherwise, they will all be executed. The poison is such that it will show its effect only after 24 hours. How can the prisoners identify the poisoned bottle by the end of the day?