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

How far can you walk into the woods?

Asked by Neha on 21 Jul 2025


An artist while painting a scenic beauty, decides to paint three layers of blue colour on the sky.

Which layer will go on the first?

Asked by Neha on 16 Oct 2024

I always drive my customer away.

Who am I?

Asked by Neha on 29 Oct 2024


What month of the year has 28 days?

Asked by Neha on 08 May 2022

A man dies of old age on his 25 birthday. How is this possible?

Asked by Neha on 17 May 2022

Look at the picture and find out which square is not linked with any of the other squares.

Squares not Connected

Asked by Neha on 31 Mar 2024


I had an infinite supply of water and 5 litres and 3 litres jars.

How would you measure exactly 4 litres in the least number of steps?

Asked by Neha on 18 Nov 2025

A boy collects white seashells from the sea and brings them home every night. When he has enough of them, he decides to sell them to a trader.

The trader is ready to buy the shells and he asks the boy about the quantity. At this, the boy starts calculating. He has a giant box that contains 3 mini boxes. Two of them have another mini box inside. If the giant box can hold 50 shells, how many brown shells can he sell to the trader?

Asked by Neha on 25 Jun 2023

You are mixing a mixture of cement and Sand with five gallons of water. You have a garden hose giving you all the water you need. The problem is that you only have a four-gallon bucket and a seven-gallon bucket and neither has graduation marks. Find a method to measure five gallons.

Asked by Neha on 13 Aug 2024


At a Society election for president, precisely 963 votes were cast.
There is a total of 4 candidates that participate in the election.

The winning candidate exceeds the opponents by 53, 79 and 105 votes.

How many votes do each candidate gets?

Asked by Neha on 04 Aug 2024

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.