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

The cream is heavier than Milk. True or False?

Asked by Neha on 18 Sep 2024


The captain of a ship is telling you an interesting story and then poses a question. He says, “I have travelled the oceans far and wide. One time, two of my sailors were standing on opposite sides of the ship. One was looking west and the other one east. And at the same time, they could see each other clearly. Can you tell me how that was possible?”

Asked by Neha on 11 Jun 2025

That attorney is my brother, testified the accountant.

But the attorney testified he didn't have a brother.

Who is lying?

Asked by Neha on 14 Dec 2020


I am under you when I am whole.
I shift above you if you remove the first letter.
I come all around you if you remove the second as well.

Can you tell me who I am?

Asked by Neha on 28 Jun 2023

A word I know,
Six letters contain,
Subtract just one,
And twelve is what remains.

Asked by Neha on 18 Feb 2024

How many times can you subtract the number 5 from 25?

Asked by Neha on 05 Oct 2021


I cannot talk, but I always reply when spoken to. What am I?

Asked by Neha on 17 Aug 2025

Why is the Hole below a Lock?

The Hole below a Lock

Asked by Neha on 22 Jul 2023

Can you count the number of squares in the figure below?

Count the Square Puzzle

Asked by Neha on 15 Jan 2026


The doctor advised his patient to take a tablet after every fifteen minutes. He gave him five tablets in total.

How much time will he take to have all the five tablets?

Asked by Neha on 01 Aug 2023

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.