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

Can you make a fire with just a single stick?

Asked by Neha on 22 Apr 2026


4 fathers, 2 grand-fathers and 4 sons went to watch the movie.What is the minimum number of tickets they need to buy ?

Asked by Neha on 04 Jan 2024

10 people came into a hotel with 9 rooms and each guest wanted his own room. The bellboy solved this problem.
He asked the tenth guest to wait for a little with the first guest in room number 1. So in the first room, there were two people. The bellboy took the third guest to room number 2, the fourth to number 3, ..., and the ninth guest to room number 8. Then he returned to room number 1 and took the tenth guest to room number 9, still vacant.
How can everybody have his own room?

Asked by Neha on 21 Aug 2023


Most people think of me as money. But when they find me in the water, they won’t get any money out of me. What am I?

Asked by Neha on 26 Oct 2025

In a mathematical quiz, you are asked the following question:

Use three 9s in a mathematical expression without dividing or multiplying to form the number one.

Can you answer the question?

Asked by Neha on 18 Feb 2026

Through your logical capabilities, can you make 7 an even?

Asked by Neha on 04 Mar 2026


A couple went to a hill station to enjoy their vacation. They have 12 sons, and each has a wife who has 3 sons further.

How many people went to the hill station?

Asked by Neha on 22 Jul 2026

Find three numbers such that When we multiply three numbers, we will get the prime numbers. The difference between the second and the first number is equal to the third and second.

Asked by Neha on 20 Apr 2025

Riddle me this, Riddle me that,
What am I? I am made of wood, but you can't see me down?

Asked by Neha on 16 Aug 2026


If you can spot the hidden clock quickly, you are often those with high IQs and exceptionally keen observation skills. You excel in noticing the finest details that others might miss and can process visual information at lightning speed.

Find the Hidden Clock In This Jungle Safari Scene

Asked by Neha on 05 Sep 2026

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.