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

For an extra income, John decided to work at a Hotel for one hour daily. The manager offers him that they will pay him $11 after every 11 days.
However, John offered a different proposition to the manager. The offers stand as:
He will be paid just a penny on his first day.
Two pence will be paid on the second day,
Four pence will be paid on the third day.
And so on till the 11th day.

Should the Hotel manager accept his offer?

Asked by Neha on 30 Nov 2025


You are given 16 witch hats. The hats are divided in four different colours – red, blue, green and yellow. Every colour has been assigned to four hats. Now each of the hat will be glued with a label of an arithmetic sign – ‘+’, ‘-‘, ‘x’ or ‘/’. But you can label one sign only once on one colour. In such an arrangement, the hats can be uniquely defined by its colour and symbol.

Can you arrange all the 16 hats in a 4x4 grid in a fashion that no two rows and columns have a repetition of colour or sign?
We have arranged four hats in the below picture to assist you.

Arrange Hats in Squares

Asked by Neha on 17 May 2021

A thief enters a store and threatens the clerk, forcing her to open the safe. The clerk says, “The code for the safe is different every day, and if you hurt me you’ll never get the code.” But the thief manages to guess the code on his own. How did he do it?

Asked by Neha on 14 Jun 2025


If,

20 % 5 = 24

21 % 7 = 33

42 % 6 = 67

Then;

66 % 6 = ?

Asked by Neha on 11 Jul 2024

Count the number of triangles in the picture below:

Counting You Should Know

Asked by Neha on 16 Jul 2024

Can you replace the question mark with the correct number in the below table sequence?

Complete the table Sequence

Asked by Neha on 23 Feb 2025


What are the next two letters in the following series and why?
W A T N T L I T F S _ _

*Hint: Check Puzzle Title

Asked by Neha on 12 May 2023

If it took eight men ten hours to build a wall, how long would it take four men to build it?

Asked by Neha on 08 May 2023

By moving exactly three matchsticks can you make the below equation true.It can be solved by 3 ways.

Matchsticks Equation

Asked by Neha on 19 Feb 2021


What number comes next in this sequence:
7 8 5 5 3 4 4 _

Asked by Neha on 06 Aug 2024

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.