Prisoner to be freed

The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another.

"In the prison is a switch room, which contains two light switches labeled 1 and 2, each of which can be in either up or the down position. I am not telling you their present positions. The switches are not connected to anything.

"After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must flip one switch when he visits the switch room, and may only flip one of the switches. Then he'll be led back to his cell.

"No one else will be allowed to alter the switches until I lead the next prisoner into the switch room. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back. I will not touch the switches, if I wanted you dead you would already be dead.

"Given enough time, everyone will eventually visit the switch room the same number of times as everyone else. At any time, anyone may declare to me, 'We have all visited the switch room.'

"If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will all die horribly. You will be carefully monitored, and any attempt to break any of these rules will result in instant death to all of you"

What is the strategy they come up with so that they can be free?




Similar Riddles

Can you count the number of quadrilaterals in the picture below?

Count the Quadrilaterals

Asked by Neha on 14 Mar 2023


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

Which wheel of car does not rotate when you turn your car right?

Asked by Neha on 08 Aug 2021


A woman lives in a skyscraper thirty-six floors high and is served by several elevators which stop at each floor going up and down. Each morning she leaves her apartment and goes to one of the elevators. Whichever one she takes is three times more likely to be going up than down. Why?

Asked by Neha on 01 Nov 2024

A man is found hanging dead from the ceiling of a room. The room’s dimensions are 15 x 15 x 15. The man is only 6ft tall and the rope was only 2ft long. There are no windows and only one door to the room. The door is bolted shut from the inside, and a puddle of water is under the man. How did he kill himself?

Asked by Neha on 03 Sep 2025

The following four words might seem abrupt to you. But you can make them meaningful by just adding vowels.
RDSH
GGPLNT
TMT
NN

Hint: All of them are vegetables.

Asked by Neha on 13 Nov 2025


Find The Odd One Out

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

Asked by Neha on 16 Feb 2024

I taste better than I can smell. Who am I?

Asked by Neha on 30 Dec 2023

What is the below Rebus indicate?

Read the Indication

Asked by Neha on 19 Sep 2023


We have shown you a regular water barrel as below. Without using any measuring device can you check if the barrel is more than half-filled or less than half-filled?

Half Filled barrel

Asked by Neha on 10 May 2023

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.