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

What number does the below three word/phrase identify and why?
1. Deck
2. Year
3. Singing in the Rain

Asked by Neha on 21 Feb 2024


Ten coins have been arranged as you can see in the given picture. In this arrangement, a triangle is formed pointing upwards. You have to invert the position of the triangle and make it point downwards while changing the position of 3 coins only. Can you do it?

Visual Thinking Riddle

Asked by Neha on 05 May 2026

A man in a car saw a Golden Door, Silver Door and a Bronze Door. What door did he open first?

Asked by Neha on 14 May 2021


How many bananas can you eat if your stomach is empty?

Asked by Neha on 13 Mar 2022

A plane crashed between the border of Mexico and America. Where do you bury the survivors?

Asked by Neha on 17 May 2021

A person was killed at a house party. When the police arrive, there are six people present in the house who are the friends of the victim. The name of the friends is Rohit, Aman, Nick, Gagan, and Randy.

Near the dead body, they find a few numbers written with blood by the victim on the floor. The numbers are 8, 5, 4, and 11.

The police arrests one of the friends for the murder. Whom did they arrest and why?

Asked by Neha on 04 May 2023


John and his wife were living in a rural place. On a particular day, John's wife fell ill and he called the local doctor. When the doctor picked up, he said, "Doctor, my wife is ill. She might have appendicitis."

"This can't be possible! I took out her appendix two years ago myself," the doctor explained.

When diagnosed, John's wife was found to have appendicitis. How can this be possible?

Asked by Neha on 19 Jun 2024

An evil man kidnapped someone and made them take one of two pills. One was harmless, but the other was poisonous. Whichever pill the victim took, the kidnapper took the other one. The victim took their pill with water and died. The kidnapper survived. How did the kidnapper get the harmless pill?

Asked by Neha on 27 Jun 2025

Can you tell a 3D object that has just two surfaces?

Asked by Neha on 24 Mar 2026


Can you complete the sequence?

192, 021, 222, 324, 252, 627, 2__, 9__?

Asked by Neha on 07 Nov 2025

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.