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

Two-person want to cross a river. Only one boat is present on the riverside that can carry only one person at a time.

However, they still manage to cross the river. How is it possible?

Asked by Neha on 18 Nov 2023


A farmer went to a market and bought a wolf, a goat, and a cabbage. On his way home, the farmer came to the bank of a river and rented a boat. But crossing the river by boat, the farmer could carry only himself and a single one of his purchases: the wolf, the goat, or the cabbage. If left unattended together, the wolf would eat the goat, or the goat would eat the cabbage. The farmer’s challenge was to carry himself and his purchases to the far bank of the river, leaving each purchase intact. How did he do it?

Asked by Neha on 21 May 2025

A thief is convicted in Mexico. He gets the death penalty. The judge allows him to say the last sentence to determine how the penalty will be carried out. If the thief lies, he will be hanged, if he speaks the truth he will be beheaded. The thief tells the last sentence and to everybody's surprise some minutes later he is set free because the judge cannot determine his penalty. What did the thief say?

Asked by Neha on 07 Sep 2024


In a contest, four fruits (an apple, a banana, an orange, and a pear) have been placed in four closed boxes (one fruit per box). People may guess which fruit is in which box. 123 people participate in the contest. When the boxes are opened, it turns out that 43 people have guessed none of the fruits correctly, 39 people have guessed one fruit correctly, and 31 people have guessed two fruits correctly.
How many people have guessed three fruits correctly, and how many people have guessed four fruits correctly

Asked by Neha on 17 Aug 2023

You are given a cube that is made with the help of 10x10x10 smaller cubes summing up to a total of 1000 smaller cubes. You are asked to take off one layer of the cubes.
How many remain now?

Cube Game

Asked by Neha on 17 Jan 2021

Why did Navjot Singh Sidhu put the new January calendar in the freezer

Asked by Neha on 01 Dec 2024


How many sides does a circle have?

Asked by Neha on 06 Oct 2021

I cannot talk, but I always reply when spoken to. What am I?

Asked by Neha on 17 Aug 2025

Who can jump higher than a Mountain?

Asked by Neha on 18 Oct 2023


Thirty friends were on a hiking trip when they decided to enjoy the bonfire. They assembled for it and agreed to play a game. For that, they divided themselves into five teams with seven members each, forming five rows.

How did they manage to achieve this formation?

Asked by Neha on 07 Oct 2024

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.