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

A Japanese ship was en route to a mission on foreign seas. The captain of the ship felt tired and thought of taking a bath. He went for taking the shower and removed his diamond ring and Rolex and kept them on the table. When he returned after taking the bath, he found that the ring and watch were stolen.

He called the five members of the crew whom he suspected and asked them what they were doing for the last 15 minutes.

The Italian cook (with a butcher knife in hand): I was in the fridge room getting meat for cooking.

The British Engineer (with a high beam torch in hand): I was working on a generator engine.

The Pakistani seaman: I was on the mast correcting the flag which was upside down by mistake.

The Indian Radio officer: I was trying to make a contact with the company to inform them about our position.

The American navigation officer: I am on night watch, so I was sleeping in my cabin.

Upon listening to them, the captain caught the lying member. Who do you think stole the valuables?

Asked by Neha on 10 Apr 2024


Why are televisions attracted to people?

Asked by Neha on 14 Jan 2024

Cristina leaves home and then she makes exactly 3 left turns and returns home where she found 2 girls wearing the mask.

Who are these two masked girls?

Asked by Neha on 01 Mar 2021


If you drop me I’m sure to crack, but give me a smile and I’ll always smile back. What am I?

Asked by Neha on 07 Mar 2025

Place a mathematical symbol between the numerals 5 and 9 in such a way that the resulting number is greater than 5 but smaller than 9.

Asked by Neha on 30 Jul 2021

Can you find a seven digit number which describes itself. The first digit is the number of zeros in the number. The second digit is the number of ones in the number, etc. For example, in the number 21200, there are 2 zeros, 1 one, 2 twos, 0 threes and 0 fours.

Asked by Neha on 23 Jul 2021


My cousin lives in one story house in Antarctica. His house is made the of-of sandstone. what is the color of stairs?

Asked by Neha on 27 Feb 2021

A detective visits his friend John just to discover that John's neighbour Dr Jacob was murdered. Dr Jacob, who is a mathematician wrote the murderer's name in a code word "Hcqtfz". There were five suspects
1. Ajit
2. Pankaj
3. Ganpat
4. Deenu
5. Hariya

The Detective was instantly able to find the murderer.
Can you?

Asked by Neha on 06 Jan 2026

Vin Diesel is pulling a theft and has planned to run away with all the cash kept in the safe. But the only way to open the safe is the 13 character password. He has a set of five clues given to him by a trustworthy source.

Exactly two of the below statements are false.
The password is contained within this sentence.
The password is not in this hint.
The password is within only one of these statements.
At least one of the above statements is a lie.

Asked by Neha on 01 Jun 2023


Out of three Friends John, Jacob and Jonny one of them is a king, one is a bureaucrat, and one is a Spy.

The king always tells the truth, the bureaucrat always lies, and the Spy can either lie or tell the truth.

John says: Jonny is a bureaucrat
Jacob says: John is a king
Jonny says: I am a Spy

Tell me, Who is the king, who is the bureaucrat, and who is the Spy?

Asked by Neha on 03 Feb 2024

Hot Articles

Amazing Facts

Crossword puzzles

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