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

A man dies of old age on his 25 birthday. How is this possible?

Asked by Neha on 17 May 2022


You order chicken wings at KFC in the boxes of 6, 9 and 20. What is the largest number of wings that you cannot obtain by buying in any combination of the boxes?

Asked by Neha on 10 Jul 2021

Something Extraordinary happened on May 6th 19778 at 12:34am what was that?

Asked by Neha on 04 Feb 2026


There is a brick of gold and a brick of iron in a boat (both 10-inch blocks), if they are both dropped into the water which will make the water level higher?

Gold and Iron Bricks

Asked by Neha on 27 May 2024

You are given four results as below:
1111 = F
2222 = E
3333 = T
Then, can you find out how to code 4444?

Asked by Neha on 29 Nov 2023

Below toothpicks/matchsticks indicate the group of fishes moving from west to east direction. Can you make them move from east to west by just moving three toothpicks/matchsticks?


Floating Fish

Asked by Neha on 14 May 2021


In this image, you can see three almost identical Doraemon images. Can you spot the odd one out from them?

Odd one out Doraemon picture riddle

Asked by Neha on 19 Apr 2021

I have branches, but no fruit, trunk or leaves. What am I?

Asked by Neha on 13 Feb 2022

You have an empty wine bottle with a cork that has been secured at the top in a normal way. There is a metal ring inside the bottle that is suspended by a string.

How can you make the metal ring drop to the bottom if you are not allowed to touch anything - not the bottle, not the cork, not the thread and not the ring?

Asked by Neha on 07 Aug 2023


Kohli and Dhoni decided to have a paintball match.
Kohli told Dhoni, "Sir it is not right as you got thrice the paintballs I have".

Dhoni instantly gives Kohli 10 hit paintballs.
Kohli replied, "Sir, I believe you still have twice the paintballs than I have".

Dhoni gives "?" more paintballs to Kohli.
Kohli replied, "Sir it is even now, Let us have a match".

What is "?".

Asked by Neha on 02 Mar 2026

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.