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 are on your way to visit your Friend, who lives at the end of the hill. It is his birthday, and you want to give him the cakes you have made. Between your house and his house, you have to cross 5 bridges, and as it goes in the land of make believe, there is a troll under every bridge! Each troll, quite rightly, insists that you pay a troll toll. Before you can cross their bridge, you have to give them half of the cakes you are carrying, but as they are kind trolls, they each give you back a single cake. How many cakes do you have to leave home to make sure that you arrive at a friend's house with exactly two

Asked by Neha on 20 Jan 2026


If eleven plus two equals one, what does nine plus five equal?

Asked by Neha on 28 Mar 2022

On my way to St. Ives I saw a man with 7 wives. Each wife had 7 sacks. Each sack had 7 cats. Each cat had 7 kittens. Kittens, cats, sacks, wives. How many were going to St. Ives?

Asked by Neha on 26 Oct 2024


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

Asked by Neha on 20 Nov 2024

Below is the sum of symbols in each row and column in the figure. Analyzing the figure, can you find out the value of the symbols?

Value of the Symbols

Asked by Neha on 12 Aug 2023

Find the last number in the series below:

voN luJ yaM raM ---

Asked by Neha on 05 Jun 2023


You see me once in June, twice in November, and not at all in May. What am I?

Asked by Neha on 31 Jul 2025

Can you replace the question mark with the correct number in the below table sequence?

Complete the table Sequence

Asked by Neha on 23 Feb 2025

What you cannot hold but it is yours?

Asked by Neha on 28 Dec 2024


Can you move 2 matchsticks to form four equal sized squares.

Make four Square Riddle

Asked by Neha on 17 Dec 2020

Hot Articles

Amazing Facts

Word ladder puzzle

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