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

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


I know a country, If you remove the last alphabet of its name, it will become a part of your body. Do you name it?

Asked by Neha on 26 Jan 2021

You need to move three matchsticks to form three squares. Can you do it?

MatchSticks Squares Riddle

Asked by Neha on 17 Jun 2023


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

A landlord calls both of his sons and tells them that their horses will now decide who will transfer the inheritance. He tells them to race along the land till the end and the one whose horse will be slower will win and be the heir to all the property.

Both of them keep wandering for days but to no result. Then they ask a wise man regarding it. The man advises them on the matter after which they jump on the horses and race as fast as they can till the end. Why did they do it?

What did the wise man say?

Asked by Neha on 05 Nov 2025

What number comes next in the series?

5 15 5 18 5 24 14 20 _

Asked by Neha on 15 Jun 2023


There is a number which when you multiply by 3 and subtract 2 from the result, then the resulting number is the reverse of the actual number.

What is the smallest number that stands true on the statement?

Asked by Neha on 20 Aug 2023

Intelligence Agency need to break the vault but the problem is that they are not able to break the vault.

On the vault, a text is written as:

31 11 33 33 43 45
21 25
31 24 11 31 51 41

To Break the code Intelligence Agency brings a mathematician named Joseph.
Minutes later he deciphers the code.

Whats the code?

Asked by Neha on 14 May 2021

Which word is least like the others? Third, fourth, fifth, sixth, seventh, eighth, ninth?

Asked by Neha on 28 Aug 2025


John went to a parrot shop in Mexico, and the parrot owner told him that his parrot is so unique that he repeats everything he hears. John got excited and immediately bought the parrot. John went home and spoke many words, but the parrot does not repeat anything.
He went again to the parrot shop and complaint to the shopkeeper, but the shopkeeper never lied. Explain?

Asked by Neha on 19 Oct 2024

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.