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 river should be crossed by a father, a mother and their two sons and two daughters.
There are some rules that should be followed while crossing the river. There can be only two people in the raft while crossing. The daughters cannot be with their father unless there is the presence of the mother. The sons cannot be with their mothers unless the father is present. Unless the guard is on the board, the criminals cannot be with any of the family members. Only the adults like the father, the guard, and the mother knows to use the raft.

How will they cross the river?

Asked by Neha on 28 Jun 2021


I have eight fingers and two thumbs but I do not live. What Am I?

Asked by Neha on 21 Mar 2024

I am never scared but became petrified and can’t live in a house but would die to make one. What am I?

Asked by Neha on 08 Sep 2025


To attend world science seminar, A famous chemist from Mexico visit
London. In the lab, the scientist was killed and his six assistants were under suspicion of killing the chemist.
Name of six assistants: Austin, Wayne, Dege, Oscaru, Lingard, and Rojo.
He left a note "76-20-44 79-16-22-7"

A local detective Jack was called to solve the case,

After reading the note, Jack instantly asked the police to arrest the murderers.

Who are the murderers?

Asked by Neha on 15 May 2021

A car is crossing a 20 km-long bridge. The bridge can support at most 1500kg of weight over it. If somehow, the weight on the bridge becomes more than that, it will break.

Now, the weight of the car is exactly 1500kg. At the midway, a bird comes and sits on the roof of the car. This bird weighs exactly 200 grams.
Can you tell if the bridge breaks at this point or not?

Asked by Neha on 26 Sep 2024

Krish is 45 years old and his mother Crishtina is 73 years old.

Can you find out how many years ago, his mother was three times his age?

Asked by Neha on 18 Mar 2024


Which letter of the alphabet has the most water?

Asked by Neha on 03 Aug 2025

There is a unique number which when multiplied by any number from 1 to 6, we will get the new number that contains the same digits only.

Can you find that number?

Asked by Neha on 19 Dec 2023

Transform the word THINK into BRAIN while changing only one letter at a time in a manner that each of the word in the process is a real word!!!

Asked by Neha on 16 Feb 2023


How many times in a given day, minutes and hour clock comes in a straight line ?

Asked by Neha on 03 Mar 2023

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.