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

An apple seller is hosting a competition. He offers 1000 apples and 10 boxes to the people who pass by. The challenge is to put those 1000 apples in the 10 boxes in such a manner that if he asks for any amount of apples, the person can directly give him the boxes or a combination of boxes. If the person can do it, he promises to give a thousand apples for free.

If you happen to pass by the apple seller, will you be able to win a thousand apples?

Asked by Neha on 10 Feb 2026


A 52% bias toss for head using the 51% tail bias coin was done to obtain a fair result.

Can you find how bias is the floor in this case?

Asked by Neha on 15 Feb 2023

What word is represented by this rebus?

Mary Mary Rebus riddle

Asked by Neha on 29 Apr 2021


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

Asked by Neha on 24 Apr 2023

By using 'because' continuously three times, can you make an English statement ?

Asked by Neha on 28 Aug 2021

Replace the question mark with the correct number below.

Tree Problem

Asked by Neha on 19 Mar 2024


There was a minor accident with a doctor's son but the doctor noticed no major injury. After the treatment, the father of that doctors son is sitting with the son of the doctor without the doctor being in the room.

How can this be possible?

Asked by Neha on 02 Feb 2025

Can you spot the man between the coffee bean in the picture below ?

Spot the Man

Asked by Neha on 31 Aug 2021

In an office's desk, you find a unique method that shows the current day of the month. Two numbered cubes are used to depict the current date.

Can you find out the numbers on both the cubes so that each date can be mentioned using them?

Please note that you have to use both the cubes to display any date. Thus the 1st day must be represented by 01 and so on.

Asked by Neha on 14 May 2023


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

Hot Articles

Amazing Facts

No Solution

In 2007, a puzzle was released and $2 million prizes were offered for the first complete solution. The competition ended at noon on 31 December 2010, with no solution being found. Wiki