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

Why despite killing dozens of people Charley and Wilma were not punished?

Asked by Neha on 21 May 2026


A man was just doing his job when his suit was torn. Why did he die three minutes later?

Asked by Neha on 15 Sep 2021

A horse was tied to a rope 5 meters long and the horses food was 15 meters away from the horse. How did the horse reach the food?

Asked by Neha on 17 May 2021


People are waiting in line to board a 100-seat aeroplane. Steve is the first person in the line. He gets on the plane but suddenly can't remember what his seat number is, so he picks a seat at random. After that, each person who gets on the plane sits in their assigned seat if it's available, otherwise, they will choose an open seat at random to sit in. The flight is full and you are last in line. What is the probability that you get to sit in your assigned seat?

Asked by Neha on 13 Mar 2024

Which five letter word can be added at the end of below word to form a
valid word?

> Pin
> Check
> Boiling
> View

Asked by Neha on 13 Aug 2021

What word is identified by the below rebus?

Your Your Your Your Your
Your Your Your Your Your

Asked by Neha on 27 Jul 2023


How can you take 2 from 5 and leave 4?

Asked by Neha on 03 Apr 2022

What is the fastest way to double your money?

Asked by Neha on 12 Feb 2023

There was a minor accident with a doctor's son but the doctor noticed no major injury. After the treatment, the father of that doctors son is sitting with the son of the doctor without the doctor being in the room.

How can this be possible?

Asked by Neha on 02 Feb 2025


What has hands, but can’t clap?

Asked by Neha on 21 Feb 2022

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.