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

What has a bottom at the top?

Asked by Neha on 20 Jul 2025


I have no life, but I can die. What am I?

Asked by Neha on 24 Aug 2025

One night, a man runs away from home. He turns left and keeps running. After some time he turns left again and keeps running. Later, he turns left one more time and runs back home—but when he gets home, he finds a man in a mask. Who was the man in the mask?

Asked by Neha on 31 May 2025


Which is heavier: a ton of bricks or a ton of feathers?

Asked by Neha on 28 Feb 2022

A train full of passengers goes through a tunnel. When the train comes out from the other end, there is no single person on the train.

How did it happen?

Asked by Neha on 26 Dec 2025

Which of the below owl is odd one out?

Find the odd

Asked by Neha on 22 May 2021


When my father was 31 I was 8. Now he is twice as old as me. How old am I?

Asked by Neha on 01 Oct 2021

Jack and Joseph are well-known golf rivals. One Day during a match, they were level at a score of 30. Jack hit a bad shot and Joseph added 10 to his score. Joseph then hit an awesome shot and he won the game.

How ?

Asked by Neha on 02 Jan 2021

To attend world science seminar, A famous chemist from Mexico visit
London. In the lab, the scientist was killed and his six assistants were under suspicion of killing the chemist.
Name of six assistants: Austin, Wayne, Dege, Oscaru, Lingard, and Rojo.
He left a note "76-20-44 79-16-22-7"

A local detective Jack was called to solve the case,

After reading the note, Jack instantly asked the police to arrest the murderers.

Who are the murderers?

Asked by Neha on 15 May 2021


What came first, the chicken or the egg?

Asked by Neha on 29 Dec 2025

Hot Articles

Amazing Facts

Crossword

The day before the 1996 U.S. presidential election, the NYT Crossword contained the clue “Lead story in tomorrow’s newspaper,” the puzzle was built so that both electoral outcomes were correct answers, requiring 7 other clues to have dual responses.