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

You have a three-gallon and a five-gallon measuring device. You wish to measure out four gallons.

Asked by Neha on 09 Jan 2026


What 5-letter word typed in all capital letters can be read the same upside down?

Asked by Neha on 20 Oct 2025

There is a box in which distinct numbered balls have been kept. You have to pick two balls randomly from the lot.

If someone is offering you a 2 to 1 odds that the numbers will be relatively prime, for example
If the balls you picked had the numbers 6 and 13, you lose $1.
If the balls you picked had the numbers 5 and 25, you win $2.

Will you accept that bet?

Asked by Neha on 11 Mar 2023


What always comes into a house through the keyhole?

Asked by Neha on 08 Mar 2022

If you were to put a coin into an empty bottle and then insert a cork into the neck, how could you remove the coin without taking out the cork or breaking the bottle?

Asked by Neha on 08 Oct 2025

In the image given, you can find several triangles. Can you count them all?

How Many Triangles Are There Puzzle

Asked by Neha on 17 Apr 2025


Which Number is the odd one out?

A) 7145
B) 2716
C) 5321
D) 4135

Asked by Neha on 10 Jan 2024

Which alphabet letter is a question?

Asked by Neha on 19 Apr 2023

I am a seven-letter word but if you remove four of my letters I will have one left. What word am I?

Asked by Neha on 02 Jun 2024


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

Hot Articles

Amazing Facts

Crossword puzzles

In the 1920s, people feared that crossword puzzles would contribute to illiteracy.