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

Three brothers Jacob, John, and James live in Mexico City. The product of the ages of these brothers is 175. Jacob and John are twins. How old is James?

Asked by Neha on 02 Sep 2024


John was so frustrated to be the suspect of being a sleeper terrorist that he shoot himself right between the eyes with a revolver in his toilet. The revolver and the bullets were accurate. Minutes later John walks out of the toilet unharmed.
How can this be possible?

Asked by Neha on 15 Nov 2023

Without looking at a calendar, within a minute name, a boy's name using 5 consecutive 1st letters of 5 consecutive months

Asked by Neha on 22 Apr 2025


A pet show was happening in my locality. I went down along with my kids. In that show, I noticed that all except two of the entries were cats. All except two were dogs and all except two were Monkeys.

Can you find out how many of each animals were present in that pet show?

Asked by Neha on 04 Feb 2021

When you stop to look, you can always see me. But if you try to touch me, you can never feel me. Although you walk towards me, I remain the same distance from you. What am I?

Asked by Neha on 20 Aug 2025

If 1+9+8=1, what is 2+8+9?

Asked by Neha on 02 Oct 2021


Count the number of triangles in the given picture.

Find out triangles

Asked by Neha on 28 Mar 2025

While preparing the table for dinner, wife came up with an idea to tease his mathematician husband. She asked her husband to pick nine toothpicks and make ten without breaking any toothpick.

The husband was also smart and did it within seconds. How ?

Asked by Neha on 22 Dec 2020

You have two bottles of pills marked with labels A and B. The pills are identical. The doctor has asked you to take one A pill and one B pill daily. You cant take more or less than that.

While taking out the pills one day, you took out one pill from A and by mistake took out two from B. You have no idea which pill is which now.

You cant throw away the expensive pills. What will you do now?

Asked by Neha on 02 Jul 2023


A finger goes in me. You fiddle with me when you're bored. The best man always has me first. What am I?

Asked by Neha on 06 Oct 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.