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

Railroad Crossing, look out for the cars. Can you spell that, without any R's ?

Asked by Neha on 14 May 2021


The doctor prescribed you to take one pill from the bottle every half an hour. The bottle is now left with only three pills.

How long do you think you have before you run out of pills?

Asked by Neha on 21 Dec 2024

A kind heart person buy packed food at 3$/packet from United states and sells them at 1$/packet at Africa. After some time he becomes a millionaire.

How come the guy become millionaire ?

Asked by Neha on 30 Jan 2023


The captain of a ship is telling you an interesting story and then poses a question. He says, “I have travelled the oceans far and wide. One time, two of my sailors were standing on opposite sides of the ship. One was looking west and the other one east. And at the same time, they could see each other clearly. Can you tell me how that was possible?”

Asked by Neha on 11 Jun 2025

Queen Elizabeth organised a royal party.

To Avoid uninvited guest royal family set a password.
Jack (an uninvited person) plan to enter the party. He stand nearby the door.

First guest comes, the security person said 'twelve' and guest replied with six.
Second guest comes , the security person said 'six' and guest replied with 'three'.

Jack thought is enough and he walked to the entry point. The security person said 'eight' , Jack replied smilingly 'four'.
He was immediately thrown out of the party. why ?

Asked by Neha on 09 Aug 2021

The barber of Town shaves all men living in the town. No man living in the town is allowed to shave himself. The barber lives in that town. Who then shaves the barber of the town?

Asked by Neha on 25 Oct 2021


Find out the missing number in the picture attached:

Find the Missing Number

Asked by Neha on 10 Jun 2023

Who has married many women but was never married?

Asked by Neha on 09 Aug 2025

A man says, "Brothers and sisters, have I none, but that man's father is my father's son." Who is that man?

Asked by Neha on 03 Jul 2023


Solve the equation in the image by looking at the pattern closely.

Match the Box

Asked by Neha on 15 Feb 2024

Hot Articles

Amazing Facts

Gamers

In 2011, people playing Foldit, an online puzzle game about protein folding, resolved the structure of an enzyme that causes an Aids-like disease in monkeys. Researchers had been working on the problem for 13 years. The gamers solved it in three weeks.