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 thief is convicted in Mexico. He gets the death penalty. The judge allows him to say the last sentence to determine how the penalty will be carried out. If the thief lies, he will be hanged, if he speaks the truth he will be beheaded. The thief tells the last sentence and to everybody's surprise some minutes later he is set free because the judge cannot determine his penalty. What did the thief say?

Asked by Neha on 07 Sep 2024


You walk into a room where there are three primates held in their respective cages:
1) A lion who is eating the flesh of a goat.
2) An orangutan who is playing with blocks.
3) A donkey who is sitting idle.

Who is the most intelligent primate in the room?

Asked by Neha on 16 Sep 2023

Trying to tease Birbal, Akbar gave him one gold coin and ask him to buy
* something for him to eat
* something for him to drink.
* something to feed the cows
* something to plant in the garden
and most important you need to buy only one thing.

What must Birbal buy to silence Akbar?

Asked by Neha on 10 May 2021


You are a prisoner sentenced to death. The Emperor offers you a chance to live by playing a simple game. He gives you 50 black marbles, 50 white marbles, and 2 empty bowls. He then says, 'Divide these 100 marbles into these 2 bowls. You can divide them any way you like as long as you use all the marbles. Then I will blindfold you and mix the bowls around. You then can choose one bowl and remove ONE marble. If the marble is WHITE you will live, but if the marble is BLACK... you will die.'

How do you divide the marbles up so that you have the greatest probability of choosing a WHITE marble?

Asked by Neha on 14 Jun 2023

After undergoing a successful eye operation, A blind girl has just boarded a train to her home. The doctor asked her to open the bandages after 3 hours. On her train journey, she opened the bandages and within a fraction of the time she commits suicide by jumping off the train.

Though her operation was successful, Why did she commit suicide?

Asked by Neha on 15 May 2021

At the local model boat club, four friends were talking about their boats.

There were a total of eight boats, two in each colour, red, green, blue and yellow. Each friend owned two boats. No friend had two boats of the same colour.

Alan didn't have a yellow boat. Brian didn't have a red boat but did have a green one. One of the friends had a yellow boat and a blue boat and another friend had a green boat and a blue boat. Charles had a yellow boat. Darren had a blue boat, but didn't have a green one.

Can you work out which friend had which coloured boats?

Asked by Neha on 15 Jan 2024


Find a 9-digit number, which you will gradually round off starting with units, then tenth, hundred etc., until you get to the last numeral, which you do not round off. The rounding alternates (up, down, up ...). After rounding off 8 times, the final number is 500000000. The original number is commensurable by 6 and 7, all the numbers from 1 to 9 are used, and after rounding four times the sum of the not rounded numerals equals 24.

Asked by Neha on 01 Sep 2021

They came out at night, without being called.
They lost at day, without being stolen.
Who are they?

Asked by Neha on 30 Aug 2021

Can you find out the smallest number that can be conveyed as the sum of three squares in three unique ways?

Asked by Neha on 27 Aug 2023


A father is locked up in jail. His wife has gone bankrupt. Their male child has to sell his hotel in order to gain some money. Yet their girl child does not care and is quite happy.

How can someone be so rude?

Asked by Neha on 30 Nov 2023

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.