Prisoners got freed

100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?




Similar Riddles

Find a 9-digit number, which you will gradually round off starting with units, then tenth, hundred etc., until you get to the last numeral, which you do not round off. The rounding alternates (up, down, up ...). After rounding off 8 times, the final number is 500000000. The original number is commensurable by 6 and 7, all the numbers from 1 to 9 are used, and after rounding four times the sum of the not rounded numerals equals 24.

Asked by Neha on 01 Sep 2021


The barber of Town shaves all men living in the town. No man living in the town is allowed to shave himself. The barber lives in that town. Who then shaves the barber of the town?

Asked by Neha on 25 Oct 2021

What is greater than gold but cannot be bought. it can never be sold and can earn if its sought. though it can be broken, it can still be fixed. for by birth it can't start nor by death it is ended.what am i?

Asked by Neha on 19 Mar 2022


Suppose you are sitting in an interview and the interviewee asks you an aptitude question.

You have three buckets with a capacity of 4 litres, 8 litres and 10 litres and you have a large tank of water. Now you have to measure 3 litres of water precisely using those buckets. How will you do it?

Asked by Neha on 04 May 2025

Mr. Buttons was all set to go to the village of Buttonland to meet his friend. So, he packed his bags and left for the village at 5 in the morning. Upon travelling on a road for miles, he came across a point where the road diverged into two. He was confused on which road to take. He gazed around and he saw two owls sitting on a branch. He thought he could ask for directions for the village from the two owls. So he went to the tree. There he saw a sign which read, "One owl always lies, and one is always truthful. They both fly away if you ask them more than 1 question."
Mr. Buttons was caught in the dilemma of what to ask? And from which owl to ask, since he only had one question. What should Mr. Buttons ask?

Asked by Neha on 18 Aug 2021

Mr Black, Mr Gray, and Mr White are fighting in a truel. They each get a gun and take turns shooting at each other until only one person is left. Mr Black, who hits his shot 1/3 of the time, gets to shoot first. Mr Gray, who hits his shot 2/3 of the time, gets to shoot next, assuming he is still alive. Mr White, who hits his shot all the time, shoots next, assuming he is also alive. The cycle repeats. If you are Mr Black, where should you shoot first for the highest chance of survival?

Asked by Neha on 18 Feb 2025


On a charity event in Russia, Murray beat Djokovic by winning six games and losing three games.
Note: There is a total of 5 service breaks(one who serve lost the game).
Who served first, Djokovic or Murray?

Asked by Neha on 06 Jun 2023

I am white when I am dirty, and black when I am clean. What am I?

Asked by Neha on 31 Mar 2022

I have an apple tree , number of apple in this tree get doubles every week.

On 30th week , the tree gets completely filled with apples :-)



Can you tell me , on what week does my tree is half covered with apples ?

Asked by Neha on 28 Feb 2021


A man lives on the fifteenth floor of an apartment building. Every morning he takes the elevator down to the lobby and leaves the building. In the evening, he gets into the elevator, and, if there is someone else in the elevator, or if it was raining that day, he goes back to his floor directly. Otherwise, he goes to the tenth floor and walks up five flights of stairs to his apartment. Can you explain why he does this?

Asked by Neha on 09 Apr 2024

Hot Articles

Amazing Facts

Crossword puzzles

In the 1920s, people feared that crossword puzzles would contribute to illiteracy.