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

At a party, there are five people and a whole round cake lying at the centre of the table. Only four people will make a cut and take their piece and the last one will get the remaining piece on the table. How can they make sure that everyone gets a 1/5th of the piece?

Asked by Neha on 20 Sep 2024


Take away the whole and some still remain. What is it?

Asked by Neha on 19 Dec 2024

What can you hold in your right hand, but never in your left hand?

Asked by Neha on 13 Jul 2025


A girl is twice as old as her brother and half as old as her father. In 50 years, her brother will be half as old as his father. How old is the daughter now?

Asked by Neha on 21 Jan 2023

An octopus has 8 legs. A hippogriff has 6 legs and 2 pairs of wings. A sphinx has 6 legs and one pair of wings. Now we have all 3 kinds and a total of 18 insects in a cage. We have a total of 118 legs and 20 pairs of wings. How many insects do we have of each kind?

Asked by Neha on 13 Oct 2024

A crime was committed at baker street. Ibrahim Dakota who was shot in the stomach was the main suspect. Sherlock questioned the suspect. The conversation started as:
Sherlock: What's your story, Ibrahim?
Ibrahim: I was walking around baker street and suddenly a man from the back shot me. I ran as fast as I could to save my life".
Sherlock: That is enough (and ask the police to arrest him).

Why does Sherlock think he is the murderer?

Asked by Neha on 25 Apr 2025


Can you find out who is the kidnapper in below Picture and why, Explain ?

Catch the Kidnapper

Asked by Neha on 17 May 2021

Replace the question mark with the correct number below.

Tree Problem

Asked by Neha on 19 Mar 2024

In a guessing game, five friends had to guess the exact numbers of apples in a covered basket.
Friends guessed 22, 24, 29, 33, and 38, but none of the guesses was correct. The guesses were off by 1, 8, 6, 3, and 8 (in random order).

Can you determine the number of apples in a basket from this information?

Asked by Neha on 23 Mar 2024


What is the end of everything?

Asked by Neha on 18 Jul 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.