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

John is found dead in a bare field. Nobody killed John,
John did not commit suicide.

Inspector Jacob found a bag just a few meters away from John which could save his life. What was in the bag?

Asked by Neha on 04 Dec 2025


James bond was pushed out of an aeroplane without any parachute.
He survived, How come?

Asked by Neha on 28 Sep 2024

In a classic wine shop, the list of three most popular wines are:
- The cost of 1 French wine bottle: 500$
- The cost of 1 German wine bottle: 100$
- The cost of 20 Dutch wine bottles: 100$

John entered the wine shop and he needs to buy
- All three types of wine bottles.
- Needs to buy Dutch wine bottles in multiples of 20.
- Need to buy 100 wine bottles in total.

John has only 10000$. How many wine bottles of each type, John must buy?

Asked by Neha on 19 Aug 2023


What animal walks on four legs in the morning, two legs during the day, and three legs in the evening?

Oedipus, the king of Thebes, figured out the answer to the riddle:

Asked by Neha on 13 Sep 2025

If eleven plus two equals one, what does nine plus five equal?

Asked by Neha on 07 Oct 2021

Why are televisions attracted to people?

Asked by Neha on 14 Jan 2024


ENEMY = 2 * LINK
LINK + 2 = HELL

Then what will be TAXI + HELL? Select from the options below:
a) ROTTEN
b) DANGER
c) HEAVEN
4) MORTAL

Asked by Neha on 26 Aug 2021

Find The Odd One Out

1. FLOW
2. SNIP
3. TRAP
4. DRAW
5. BACK

Asked by Neha on 16 Feb 2024

A boy purchased a book from a bookkeeper and gave him $100.
The cost of the book is $50 but the bookkeeper has no change, so he gets the change from the next shop and returns the boy his $50.

After some time the next shopkeeper came with the $100 note and told the bookkeeper that the note was a fraud, so he took the money back.

How much loss did the bookkeeper face?

Asked by Neha on 25 Dec 2025


My friends called me Iron59 because my parents are a chemist and a mathematician. What is my real name?

Asked by Neha on 01 Sep 2023

Hot Articles

Amazing Facts

Crossword

The day before the 1996 U.S. presidential election, the NYT Crossword contained the clue “Lead story in tomorrow’s newspaper,” the puzzle was built so that both electoral outcomes were correct answers, requiring 7 other clues to have dual responses.