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

I am working in a bus company. The company recently went under expansion and therefore there was not enough room for all the buses. As a result, twelve buses had to be stored outside.

If the company decides to expand the garage space by forty percent, enough space to accommodate the current buses will be created leaving enough space for twelve more buses if the need arises in future.

Can you calculate the number of buses that the company owns at present?

Asked by Neha on 18 Dec 2020


What does man love more than life, hate more than death or mortal strife; That which contented men desire; the poor have, the rich require; the miser spends, the spendthrift saves, and all men carry to their graves?

Asked by Neha on 15 Mar 2025

If an electric train is travelling south, then which way is the smoke going?

Asked by Neha on 27 Aug 2025


Why do we preferably have round manhole covers and not square ones?

Asked by Neha on 22 Apr 2024

Give it food and it will live; give it water and it will die.

Asked by Neha on 17 Dec 2023

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


They are three errirs in this question. Can you find them?

Asked by Neha on 13 May 2025

A man is trapped in a room. The room has only two possible exits doors. Through the first door there is a room constructed from magnifying glass. The blazing hot sun instantly fries anything or anyone that enters. Through the second door there is a fire-breathing dragon. How does the man escape?

Asked by Neha on 09 Jan 2021

What has a bottom at the top?

Asked by Neha on 20 Jul 2025


I sleep during the day and fly at night, but I have no feathers to aid my flight. What am I?

Asked by Neha on 28 Oct 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.