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 person was found dead on a big green land with no trees or buildings around. When the police arrived, they found a piece of rock lying next to him and the man was wearing clothes comprising of red, blue and yellow colours.

Can you tell who the person is and what was the cause of death?

Asked by Neha on 03 May 2024


What has six faces, but does not wear makeup, has twenty-one eyes, but cannot see? What is it?

Asked by Neha on 26 Mar 2022

What is so fragile that saying its name breaks it?

Asked by Neha on 19 Oct 2021


Two prisoners Jack and Jill are locked in a cell.
There is open window approx 40 feet above the ground of the cell.
They are never able to reach there.

Then they plan to escape by a tunnel and they start digging out.
After digging for more than 20 days, Jill comes with the different plan and they escaped.

what was the plan ?

Asked by Neha on 10 Aug 2021

The captain of a ship is telling you an interesting story and then poses a question. He says, “I have travelled the oceans far and wide. One time, two of my sailors were standing on opposite sides of the ship. One was looking west and the other one east. And at the same time, they could see each other clearly. Can you tell me how that was possible?”

Asked by Neha on 11 Jun 2025

The following four words might seem abrupt to you. But you can make them meaningful by just adding vowels.
RDSH
GGPLNT
TMT
NN

Hint: All of them are vegetables.

Asked by Neha on 13 Nov 2025


In the figure, you can see nine stars. What you have to do is connect all of them by using just four line and without lifting your hand i.e. in a continuous flow.

Connect the Stars

Asked by Neha on 17 May 2021

A man died, leaving $10,000,000 for his widow, 5 sons and 4 daughters. Each daughter received an equal amount, each son received twice as much as a daughter, and the widow received three times as much as a son.

How much did the widow receive?

Asked by Neha on 17 Jan 2026

If a shopkeeper can only place the weights on one side of the common balance. For example, if he has weights 1 and 3 then he can measure 1, 3 and 4 only. Now the question is how many minimum weights and names of the weights you will need to measure all weights from 1 to 1000? This is a fairly simple problem and very easy to prove also.

Asked by Neha on 29 Oct 2023


I go up and I go down.
I go up towards the beautiful sky and down toward the green ground.
I am present tense.
I am past tense too
Children love me.

Who Am I?

Asked by Neha on 16 Jan 2025

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.