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

You are given with the following sum. Each of the letters can be decoded as a digit. If we tell you that D = 5, then can you solve it entirely?

DONALD
+GERALD
=ROBERT

Asked by Neha on 29 Jun 2021


Which number should replace the question mark?

Triangular Logic

Asked by Neha on 11 Aug 2023

A horse was tied to a rope 5 meters long and the horses food was 15 meters away from the horse. How did the horse reach the food?

Asked by Neha on 17 May 2021


Can you replace the question mark with the correct number in the below table sequence?

Complete the table Sequence

Asked by Neha on 23 Feb 2025

Where do fish keep their money?

Asked by Neha on 25 Nov 2025

Find the Odd One Out?
84129
32418
47632
36119
67626
72927

Asked by Neha on 05 Feb 2026


If an electric train is travelling south, then which way is the smoke going?

Asked by Neha on 27 Aug 2025

John asked Jack, "The time right now is 7 pm. Can you tell me what will be the time 23, 999, 995 hours later ?"

While Bella does not know the answer, do you ?

Asked by Neha on 22 Jun 2021

Can you find a pattern and the missing number in the series given below?

100, 155, 258,? , 584, 819.

Asked by Neha on 23 Sep 2024


If I remove one from eleven it becomes Ten and if I remove one from nine also becomes Ten. How?

Asked by Neha on 25 Oct 2023

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