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

What happened when the wheel was invented?

Asked by Neha on 14 Feb 2024


Different lights make me strange by changing me into different sizes. What am I?

Asked by Neha on 09 Sep 2025

Find the number of squares in the below picture

Count The Squares

Asked by Neha on 13 Apr 2021


Can you calculate the probability of getting a sum of six when a dice is thrown twice?

Asked by Neha on 11 Feb 2021

There were two grandmothers and their two granddaughters.
There were two husbands and their two wives.
There were two fathers and their two daughters.
There were two mothers and their two sons.
There were two maidens and their two mothers.
There were two sisters and their two brothers.
Yet there are only six, who are buried here,
All are born legitimate and relationships clear.
How can this happen?

Asked by Neha on 15 Jun 2024

I am thinking of a five-digit number such that:
The first and last digits are the same, their submission is an even number and multiplication is an odd number and is equal to the fourth number. Subtract five from it and we obtain the second number. Then divide into exact halves and we get the 3rd number.

What number I am thinking of?

Asked by Neha on 16 Nov 2024


I know there are two methods by using three time the same number with a plus(+) operator , you can make sum as 60.

One of them is 20+20+20.

whats the other way ?

Asked by Neha on 28 May 2024

I look at you, you look at me, I raise my right, you raise your left. What am I?

Asked by Neha on 17 May 2021

The king of Octopuses has servants who have six, seven or eight legs. The distinguishing characteristics of the servants is that the one with seven legs always lie but the one with either six or eight legs speak the truth always.

One day, four servants meet and converse:

The black one says, 'We have 28 legs altogether.'

The green one says, 'We have 27 legs altogether.'

The yellow one says, 'We have 26 legs altogether.'

The red one says, 'We have 25 legs altogether.'


Can you identify the colour of the servant who is speaking the truth?

Servants with multiple legs

Asked by Neha on 09 Apr 2021


The cream is heavier than Milk. True or False?

Asked by Neha on 18 Sep 2024

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.