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 2 workers can complete painting 2 walls in exactly 2 hours.

How many workers would be needed to paint 18 walls in 6 hours?

Asked by Neha on 09 Feb 2026


I have branches, but no fruit, trunk or leaves. What am I?

Asked by Neha on 13 Feb 2022

Two fathers and two sons went fishing one day. They were there the whole day and only caught 3 fish. One father said, that is enough for all of us, we will have one each. How can this be possible?

Asked by Neha on 17 May 2021


An express train takes 3 seconds to enter the tunnel which is 1 km long.
If it is travelling at 120 km an hour, how long will it take to pass completely through the tunnel?

Asked by Neha on 26 Nov 2023

What number do you get when you multiply all of the numbers on a telephone's number pad?

Asked by Neha on 17 Jul 2024

A police officer was passing by when he saw a guy hiding. He walked up to him and genially asked, "What is your name?"

"Shut up!" the boy responded.

"Where are your manners?" asked the outraged police officer.

"Up that tree," said the boy discourteously, directing to a neighbouring tree.

You're looking for trouble, aren't you?" said the police officer.

"No, trouble is looking for me!" the boy answered solemnly.

Why is the boy behaving like this?

Asked by Neha on 10 May 2026


Can you identify if it's a murder or a suicide ?


Murder or Suicide?

Asked by Neha on 17 May 2021

A bus driver was heading down a street in Mexico. He went right past a stop sign without stopping, he turned left where there was a "no left turn" sign, and he went the wrong way on a one-way street. Then he went on the left side of the road past a cop car. Still - he didn't break any traffic laws. Why not?

Asked by Neha on 14 May 2021

On rolling two dices (six-sided normal dice) together, what is the probability that the first one comes up with a 2 and the second one comes up with a 5?

Asked by Neha on 08 Oct 2023


They are the five precious gems of an everyday sort and all can be found on a Tennis Court. Who are they?

Asked by Neha on 21 Apr 2024

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.