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

If Japan and Panama decided to merge into a single country, probably people will name it Japanama.

Can you think of two more such country's unions that could produce similar names like Japanama by overlapping their three letters?

Asked by Neha on 08 Sep 2024


Can you solve the photo plexer logic ?

Logical Rebus

Asked by Neha on 14 May 2021

On a certain day, John celebrated his birthday. Two days later, his older twin brother Jacob celebrated his birthday.

Is this even possible? How can it be?

Asked by Neha on 19 Jan 2021


Can you find a pattern and the missing number in the series given below?

100, 155, 258,? , 584, 819.

Asked by Neha on 23 Sep 2024

There was a competition where the contestants had to hold something. At the end of the event, the winner was a person who had no hands or feet. What was it that the contestants had to hold?

Asked by Neha on 20 Jun 2025

If I put in one canary per cage, I have one bird too many. If I put in two canaries per cage, I have one cage too many. How many cages and canaries do I have?

Asked by Neha on 05 Oct 2023


There are three light switches outside a room. One of the switches is connected to a light bulb inside the room.
Each of the three switches can be either 'ON' or 'OFF'.

You are allowed to set each switch the way you want it and then enter the room(note: you can enter the room only once)

Your task is to then determine which switch controls the bulb?

Asked by Neha on 07 Mar 2023

How will you measure 15 minutes using two hourglasses of 7 minutes and 11 minutes respectively?

Asked by Neha on 07 Sep 2023

What kind of band never plays music?

Asked by Neha on 09 Jul 2023


If a shopkeeper can only place the weights on one side of the common balance. For example, if he has weights 1 and 3 then he can measure 1, 3 and 4 only. Now the question is how many minimum weights and names of the weights you will need to measure all weights from 1 to 1000? This is a fairly simple problem and very easy to prove also.

Asked by Neha on 29 Oct 2023

Hot Articles

Amazing Facts

Crossword puzzles

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