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

You throw me out when you want to use me and you take me in when you don't want to use me.

Who Am I?

Asked by Neha on 15 Jun 2026


Seek and Puzzle: Only the Sharpest Eyes Can Spot the Hidden Star in 10 Seconds

Find the Star in Green Park

Asked by Neha on 25 Aug 2026

John and Jacob are playing bets. John gives $10 to Jacob and Jacob deals four cards out of a normal 52-card deck which are chosen by him completely randomly. Jacob keeps them facing down takes the first card and shows it to John. John has a choice of either keeping it or looking at the second card. When the second card is shown to him, he again has the choice of keeping or looking at the third which is followed by the third card as well; only if he does not want the third card, he will have to keep the fourth card.

If the card that John is choosing is n, Jacob will give it to him. Then the cards will be shuffled and the game will be played repeatedly. Now you might think that it all depends on chance, but John has come up with a strategy that will help him turn the favor in his odds.

Can you deduce the strategy of John?

Asked by Neha on 27 Jul 2026


What is the word or phrase below?
R | E | A | D

Asked by Neha on 28 Jul 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 no doors but I have keys, I have no rooms but I have space, you can enter but you can’t leave! What am I?

Asked by Neha on 15 Mar 2022


There is an ancient kingdom where every married woman keeps information regarding the fidelity of other men. However, what they don't know is the fidelity of their own husbands. Also, there is an ancient belief that they don't tell each other about the fidelity of their husbands.

On a certain day, the queen of the kingdom declares that she has identified at least one unfaithful man in the kingdom. She allows the wives to identify and gives them authority to kill their husbands if they are unfaithful at midnight.

How will the wives manage it?

Asked by Neha on 03 Oct 2023

On a magical land of Mexico , all the animal in the land are rational.

There are 10 tigers and one goat.
Tiger can eat goat but since it's a magical land , the tiger who eats the goat , turns into goat and then can be eaten by the remaining tiger(s).

If we leave them for some time then how many goat and tiger will be there , when we come back ?

Asked by Neha on 31 May 2021

There is a barrel with no lid and some wine in it. 'This barrel of wine is more than half full,' said Curly. 'No it's not,' says Mo. 'It's less than half full.' Without any measuring implements and without removing any wine from the barrel, how can they easily determine who is correct?

Asked by Neha on 05 May 2023


In a school, there are four subjects. Seventy percent of students study English, seventy five percent of students study Science, eighty five percent of students study Mathematics and eighty percent of students study Spanish.

Can you calculate the percentage of students that study all four subjects?

Asked by Neha on 16 Apr 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.