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

100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?

Asked by Neha on 20 Apr 2022


If an earthquake is 1 point higher on the Richter Scale than another earthquake which is actually 10 times stronger, how much stronger would an earthquake be if it was just half a point higher on the Richter scale?

Asked by Neha on 23 Jun 2024

A Japanese ship is sailing in the Indian Ocean. The captain of the ship feels tired and decides to take shower to be rejuvenated. He goes to take the shower after keeping his diamond-studded Rolex watch and gold chain on the table.
When he comes back after 15 minutes, he finds them missing. There are 4 crew members on the ship and he calls them one by one to ask them what they were doing in that duration.

Following are the answers:
1. Crew 'A' who is the cook replies that he was cooking mutton for the crew members.
2. Crew 'B' who is a housekeeper tells that he was sleeping in his room.
3. Crew 'C' who is the engineer says that he was checking on the generator.
4. Crew 'D' who is another housekeeper says that he was correcting the hoisted flag that was put upside down.

It took only a couple of seconds for the captain to find the thief. Can you find the thief too?

Asked by Neha on 03 Jan 2024


What is greater than gold but cannot be bought. it can never be sold and can earn if its sought. though it can be broken, it can still be fixed. for by birth it can't start nor by death it is ended.what am i?

Asked by Neha on 19 Mar 2022

What does the following represent?

N N N N N N N

A A A A A A A

C C C C C C C

Teaser Puzzle

Asked by Neha on 04 Mar 2021

What are the 50th, 63rd and 100th numbers in the sequence below?
4, 5, 8, 8, 9, 9, 12, 13, 13, 13, 17, 18, ...

Asked by Neha on 08 Feb 2024


Which is Odd One Out and why?

4377

3954

9862

8454

9831

Asked by Neha on 09 Jan 2024

When can we add 2 to 11 and get 1 as the correct answer?

Asked by Neha on 16 Oct 2023

Which word is least like the others? Third, fourth, fifth, sixth, seventh, eighth, ninth?

Asked by Neha on 28 Aug 2025


1 + 9 + 8 = ?
considering, 28 + 8 + 92 = 10

Asked by Neha on 03 Aug 2021

Hot Articles

Amazing Facts

Challenging

There is a cryptic organization called Cicada 3301 that posts challenging puzzles online, possibly to recruit codebreakers and linguists.