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

It was a dark stormy night and a couple were in a car driving madly to a city. The car broke down and the husband had to go get help from someone who spoke his language. He was afraid to leave his wife alone in the car so he locked the car before leaving. When he came back, the car was in the same state as he had left it but his wife was dead, there was blood on the floor and there was a stranger in the car. What happened?

Asked by Neha on 02 Aug 2024


You have two rectangular wires.

Both of them have property that when you light the fire from one end , it will take 60 minutes to get completely burn.

However, they do not burn at consistent speed (i.e it might be possible 1st 20% burn in 50 minutes and 80% can burn in 10 minutes).

So how could you measure 45 minutes ?

Asked by Neha on 21 Feb 2021

There are three identical triplets sisters. Demi is the oldest of them all and she always speaks the truth. Diana is the next one who is a liar always. Drew, the youngest of them all speaks both truth and lies randomly.

On a rainy day, a family friend Victor visited them. Since there were starkly identical, he was not able to recognize them. Thus to clarify, he asked one question to each one of them.

He started with the one standing on the left and asked, 'Which sister is in the middle of you three?' She answered, 'That's Demi.'

Then, he asked the one standing in the middle, 'What is your name?' She answered, 'I am Drew.'

Finally, he asked the one standing on the right, 'Who is standing in the middle?' She answered, 'She is Diana.'

Victor was left baffled. He asked the questions three times and received different answers every time.

Can you tell who was who?

Asked by Neha on 19 May 2023


What's the next in the series?

H, Be, F, S, Mn, Kr, In, Gd, Tl, ?

Asked by Neha on 17 Oct 2023

The king of Octopuses has servants who have six, seven or eight legs. The distinguishing characteristics of the servants is that the one with seven legs always lie but the one with either six or eight legs speak the truth always.

One day, four servants meet and converse:

The black one says, 'We have 28 legs altogether.'

The green one says, 'We have 27 legs altogether.'

The yellow one says, 'We have 26 legs altogether.'

The red one says, 'We have 25 legs altogether.'


Can you identify the colour of the servant who is speaking the truth?

Servants with multiple legs

Asked by Neha on 09 Apr 2021

Can you name four days which start with the letter 'T'?

Asked by Neha on 20 Nov 2024


In the image given, you can find several triangles. Can you count them all?

How Many Triangles Are There Puzzle

Asked by Neha on 17 Apr 2025

Find the next number in the series

12, 20, 40, 72, 116, 172 ?

Asked by Neha on 19 Oct 2025

Name the three-letter word that can complete the below words:

A) L O _ _ _ E
B) E D U _ _ _ E
C) _ _ _ E R
D) _ _ _ T L E

Asked by Neha on 23 Jan 2024


I am the fastest animal but cannot climb the tree. What am I?

Asked by Neha on 29 Oct 2025

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.