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

How can you leave a room with two legs and return with six legs?

Asked by Neha on 14 May 2021


At a party, there are five people and a whole round cake lying at the centre of the table. Only four people will make a cut and take their piece and the last one will get the remaining piece on the table. How can they make sure that everyone gets a 1/5th of the piece?

Asked by Neha on 20 Sep 2024

I am an eight letter word and I am a computer terminology.
The second, third and fourth letters make an animal.
The fourth, fifth, sixth, seventh and eighth letters make a weapon.
The first, second, third and fourth letters can be taken as an outcome of any exam.
The fifth, sixth, seventh and eighth letter combine to form a high end typing software.

Can you tell who am I ?

Asked by Neha on 16 Jul 2021


I have an eye but still cannot see.

Who am I?

Asked by Neha on 28 Oct 2023

If we tell you that there is a relation between the numbers and letters in the given figure, can you analyze it and find the missing letter in the last box?

Relationship in Numbers and Letters

Asked by Neha on 11 Jun 2023

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


There was a blind man. He had four socks in his drawer either black or white. He opened it and took out two socks. Now the probability that it was a pair of white socks is 1/2.

Can you find out the probability that he had taken out a pair of black socks ?

Asked by Neha on 19 Mar 2023

It begins where the time ends.
Its second is an expression of surprise.
Its third is a question.
Its fourth is urinate.
It ends with a drink.

Which country it is?

Asked by Neha on 21 Jul 2021

I always drive my customer away.

Who am I?

Asked by Neha on 29 Oct 2024


'S' refers to the number of seconds in a day and 'H' refers to the number of hours in ten years. Which quantity out of these two is greater?

Asked by Neha on 28 Apr 2025

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.