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

I never stop running even when I standstill. If I am formed by joining two identical bodies together, can you guess who I am?

Asked by Neha on 28 Mar 2023


It can't be seen, can't be felt, can't be heard, and can't be smelt.
It lies behind stars and under hills, And empty holes it fills.
It comes first and follows after, Ends life, and kills laughter.
What is it?

Asked by Neha on 17 May 2021

13 decks of cards have been mixed. What is the minimum number of cards that must be taken out from the above-mixed cards to guarantee at least one 'four of a kind?

Asked by Neha on 10 Jun 2024


A man is found unconscious in front of a store at two in the morning. His head is bleeding and there’s a brick laying next to him. When the police arrive, they carry the man to jail. Why did they arrest him?

Asked by Neha on 25 May 2025

Can you circle exactly four of these numbers such that the total is twelve?

1 6 1
6 1 6
1 6 1
6 1 6

Asked by Neha on 27 Apr 2023

Twenty frogs are sitting on a log floating on the surface of a river. Two of them decide to jump off into the water.

How many frogs are there on the log at this moment?

Asked by Neha on 20 Oct 2023


How many cubic feet of dirt are in a hole of one foot deep, three feet long, and two feet wide?

Asked by Neha on 13 Feb 2021

As you can see that fifteen matches have been used to form an arrangement. What you have to do is remove any six of them to make them ten.

Make the Word TEN

Asked by Neha on 14 May 2021

James Bond is caught up in a mysterious scenario where the evil villain has him blindfolded. He somehow breaks through the handcuffs but is unable to get the blindfold off. Upon searching, he comes across a bow and 3 arrows. He can hear the villain speak, and thus tries to take a shot at him. He launches the first arrow, it misses the villain. He then launches the second arrow and it misses by a greater margin.

What is the probability that this third shot our James bond takes will be worse than the second shot?

Asked by Neha on 21 Jun 2023


If "P" means "-", "Q" means "/", "R" means "+", and "S" means "*" then find the value of the following:

21 Q 7 R 9 S 10 P 13

Asked by Neha on 16 Oct 2025

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.