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 can write cow in 13 letters.

Can You?

Asked by Neha on 03 Oct 2024


Why do you find that most of the buildings are deprived of the 13th floor?

Asked by Neha on 11 Jan 2025

A mother is 21 years older than her child. In exactly 6 years from now, the mother will be exactly 5 times as old as the child.
Where's the father?

Asked by Neha on 26 Jun 2021


If nine thousand, nine hundred nine dollars is written as $9,909,
how should twelve thousand, twelve hundred twelve dollars be written?

Asked by Neha on 24 Sep 2023

Imagine you are in a room with no windows or doors. How will you get out?

Asked by Neha on 25 Oct 2025

Can you divide numbers from 1 to 9 (1 2 3 4 5 6 7 8 9) into two groups so that the sum of the numbers of each group is equal?

Note: 9 cannot be turned over to make it 6.

Asked by Neha on 19 Jul 2023


What part of the chicken has the most feathers?

Asked by Neha on 19 Jul 2025

What is at the end of a rainbow?

Asked by Neha on 17 May 2021

On a beautiful Sunday morning, You ordered a hot tea to your hotel room and suddenly you remember an important thing that needed to be done right now will take around 3 minutes to complete.
Like most people you like your tea to be hot while drinking so, when should you pour cream in the tea?
1. straight away
2. Just people, you drink the team
3. Its does not matter

Asked by Neha on 24 Jun 2023


Vin Diesel is pulling a theft and has planned to run away with all the cash kept in the safe. But the only way to open the safe is the 13 character password. He has a set of five clues given to him by a trustworthy source.

Exactly two of the below statements are false.
The password is contained within this sentence.
The password is not in this hint.
The password is within only one of these statements.
At least one of the above statements is a lie.

Asked by Neha on 01 Jun 2023

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.