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

There is a river to cross using a river raft and there are eight people (father, mother, policeman, thief, 2 daughters and 2 sons). No one knows to operate the raft except the adults and also excluding the thief. Only two people can go in the raft at a time. The raft should keep coming back and forth in order to pick and drop the people.
Rules to be followed:
Father: the father cannot stay in the raft or outside the raft without the presence of the mother.
Mother: the mother cannot stay in the raft or outside the rat without the presence of the father.
Thief: the thief is not allowed to stay with any of the family members unless there is a policeman.
Policeman: the policeman can travel with anyone.
2 sons and 2 daughters: they are not allowed to travel in the raft without the presence of an adult. They cannot either travel in the presence of only thieves without the policeman. The sons cannot be with their mothers without their father's supervision. The daughters are not allowed to be there with their fathers without the supervision of their mothers. But the daughters and the sons can be left unsupervised (as long as the other rules are applied).
What is the sequence that the people should follow in order to cross the river through the raft keeping in mind all the rules?
The rules are applicable not only in the raft but also outside the raft.

Asked by Neha on 14 Aug 2023


John killed hundreds of people mercilessly and yet the police were not able to put her behind the bars. Why?

Asked by Neha on 02 Nov 2024

Outside a tattoo artist's shop, there was a signboard which read 'I make tattoos on only them who do not tattoo themselves'.

Reading it what do you think, does the tattoo artist tattoo himself?

Asked by Neha on 22 Nov 2025


If six children and two dogs were under an umbrella, how come none of them got wet?

Asked by Neha on 07 Mar 2022

What number should come in place of the question mark below?

Logical Number in Center

Asked by Neha on 27 Aug 2024

Solve The below Equation:

ALFA + BETA + GAMA = DELTA

Asked by Neha on 20 Jul 2023


I look flat, but I am deep. Hidden realms I shelter. Lives I take, but the food I offer. At times I am beautiful. I can be calm, angry, and turbulent. I have no heart but offer pleasure as well as death. No man can own me, yet I encompass what all men must have. What am I?

Asked by Neha on 01 Jun 2025

Find out a multi-digit number that if multiplied by the number 9 or any of its multiplications products (i.e. 18, 27, 36, 45,..) will result in the multiplication factor repeated (n) number of times.

Asked by Neha on 08 Jan 2021

In the picture, you can see a chess board. On the top left position, the K marks a knight. Now, can you move the knight in a manner that after 63 moves, the knight has been placed at all the squares exactly once excluding the starting square?

Are You A Chess Player?

Asked by Neha on 08 Apr 2024


You are provided with a grid (as shown in the picture). Can you fill the squares with numbers 1-8 in a manner that none of the two consecutive numbers are placed next to each other in any direction (vertically, horizontally or diagonally?)

Fill The Grid

Asked by Neha on 22 Sep 2025

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.