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 know three triplets: Frank John and Wayne (need to return your money). Frank always tells the truth while John and Wayne always lie. You meet one of them on the road and can ask him a three-word question.
Which question, will you ask?

Asked by Neha on 21 Mar 2023


Paul's height is six feet, he's an assistant at a butcher's shop and wears size 9 shoes. What does he weigh?

Asked by Neha on 13 Aug 2025

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


A king sentenced a man to the death sentence for some crime he had committed. Known for his kindness, the king told the culprit that he had a choice to die in a way he decides.

The culprit was clever and said something that saved him from death. What method do you think he must have chosen for his death?

Asked by Neha on 17 Oct 2025

Can you make numbers like 24, using numbers 3,3,7 & 7 with any arithmetic operator?

Asked by Neha on 25 Feb 2023

John was born on March 5, 1970, in Delhi, India. Jacob was born 25 days before John. The year when they took birth, Republic Day fell on Monday.

Can you find out on what day was Jacob born?

Asked by Neha on 24 Dec 2023


What can you hold in your right hand, but never in your left hand?

Asked by Neha on 13 Jul 2025

What is the next number in the series?

15 29 56 108 208 ?

Asked by Neha on 27 Dec 2024

If six children and two dogs were under an umbrella, how come none of them got wet?

Asked by Neha on 07 Mar 2022


What does it mean?

What does it mean?

Asked by Neha on 03 Mar 2025

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.