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

A man was gazing through the window of the 23rd floor of the building. He suddenly opened the window and jumped on the other side of the window. On landing on the floor, there was not a sheer mark of injury on him.

How can that be possible if he did not use any kind of parachute and did not land on a soft surface?

Asked by Neha on 12 Feb 2025


In the below-given picture of a pretty girl, there is something wrong. Can you find out what it is?

Funny Girl Puzzle

Asked by Neha on 20 May 2025

A man has a barrel filled with oil that weighs 100 pounds, and then he puts something into it. Now the barrel weighs less than 100 pounds. What did he put in the barrel?

Oil in the Drum

Asked by Neha on 04 Feb 2024


Can you solve this tricky maths equation problem by replacing it? mark with the correct symbol?

19834 -----: 187
15921 -----: 153
17561 -----: 139
13734 -----: ???

Asked by Neha on 28 May 2023

You have two jars of chocolates labelled as P and Q. If you move one chocolate from P to Q, the number of chocolates on B will become twice the number of chocolates in A. If you move one chocolate from Q to P, the number of chocolates in both the jars will become equal.

Can you find out how many chocolates are there in P and Q respectively?

Asked by Neha on 11 Apr 2023

On the occasion of Diwali, online seller companies in India are offering a big discount on Iphone14 as below.

: Flipkart offers a Flat 65% discount
: Amazon offers a 10% discount over and over again.
: Shopclues offers RS.45,000 off.

If the original cost of the iPhone is Rs.70,000 Which is the best offer for you?

Asked by Neha on 01 Sep 2024


Can you decipher these quotes by Albert Einstein?
Blf xzm mvevi hloev z kilyovn lm gsv ovevo lm dsrxs rg dzh xivzgvw.

Asked by Neha on 12 Jun 2024

What is the largest number you can write with just 3 digits?

Asked by Neha on 18 Apr 2025

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


How can you make number one disappear by adding something to it?

Asked by Neha on 08 May 2024

Hot Articles

Amazing Facts

Crossword puzzles

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