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

If we add four times the age of John four years from now to five times his age five years from now we get ten times his current age.

How old will John be two years from now?

Asked by Neha on 19 Jan 2025


What Adam and Eve do not have but the rest of the people have?

Asked by Neha on 15 Mar 2023

When you say goodbye, I am what you need to tie.
I come as a couple and go wherever you run.
Who am I?

Asked by Neha on 12 Oct 2025


There are hundred red gems and hundred blue gems. The blue gems are priceless while the red gems equal wastage. You have two sacks one labeled Heads and the other Tails. You have to distribute the gems as you want in the two sacks. Then a coin will be flipped and you will be asked to pick up a gem randomly from the corresponding sacks.

How will you distribute the gems between the sacks so that the odds of picking a Blue gem are maximum?

Asked by Neha on 29 May 2023

What is the next number in this matchsticks series riddle?

Next Number In Matchstick Series

Asked by Neha on 27 Apr 2021

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


Who always enjoys poor health?

Who enjoys poor health?

Asked by Neha on 22 Sep 2021

Two boys wish to cross a river. The only way to get to the other side is by boat, but that boat can only take one boy at a time. The boat cannot return on its own, there are no ropes or similar tricks, yet both boys manage to cross using the boat.

How?

Asked by Neha on 14 Oct 2025

Irene killed hundreds of people mercilessly and yet the police were not able to put her behind the bars. Why?

Asked by Neha on 05 Feb 2024


A red house is made out of red bricks. A yellow house is made out of yellow bricks. And, a blue house is made out of blue bricks. So, what is a greenhouse made of?

Asked by Neha on 30 Jun 2025

Hot Articles

Amazing Facts

Word ladder puzzle

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