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

Which is the correct shadow of the bird?

Correct Shadow Riddle

Asked by Neha on 23 Aug 2021


My friends called me Iron59 because my parents are a chemist and a mathematician. What is my real name?

Asked by Neha on 01 Sep 2023

By removing one matchstick and adding one matchstick, can you convert the word "ZOO" to an animal name?

Zoo Matchsticks Riddle

Asked by Neha on 27 May 2023


Two friends were stuck in a cottage. They had nothing to do and thus they started playing cards. Suddenly the power went off and Friend 1 inverted the position of 15 cards in the normal deck of 52 cards and shuffled it. Now he asked Friend 2 to divide the cards into two piles (need not be equal) with equal number of cards facing up. The room was quite dark and Friend 2 could not see the cards. He thinks for a while and then divides the cards in two piles.

On checking, the count of cards facing up is same in both the piles. How could Friend 2 have done it ?

Game with Cards

Asked by Neha on 02 Mar 2021

You are an expert on paranormal activity and have been hired to locate a spirit haunting an old resort hotel. Strong signs indicate that the spirit lies behind one of four doors. The inscriptions on each door read as follows:

Door A: It's behind B or C
Door B: Its behind A or D
Door C: It's in here
Door D: It's not in here

Your psychic powers have told you three of the inscriptions are false, and one is true. Behind which door will you find the spirit?

Asked by Neha on 23 Oct 2023

John is the son of Jacob.
So,
Jacob is the_____of John's father?

Asked by Neha on 17 Dec 2024


The King of a distant land had heard that Birbal was one of the wisest men in the East and so desired to meet Birbal. He sent Birbal an invitation to visit his country.

In due course, Birbal arrived in the distant kingdom. When he entered the palace he was flabbergasted to find not one but six kings seated there. All looked alike. All were dressed in kingly robes. Who was the real king?

The very next moment he got his answer. Confidently, he approached the king and bowed to him.

How did Birbal know who was the real king?

Asked by Neha on 17 May 2021

A spy was in Canada trying to steal insider information on how to set up new Maple Syrup factories in their country. He was introduced to the operations manager of the biggest factory in Canada. However, the manager was suspicious and decided to test him with a question before he trusted him. So he asked, “What would you be sure to find in the middle of Toronto?” The spy thought fast and came up with an answer for the manager. What was his answer?

Asked by Neha on 04 Jun 2025

When I got four, I have it none.
When I got two, I have it some.
When I got none, I have it all.

What is it?

Asked by Neha on 31 Aug 2024


As easy as you can get into me, it is as hard to get out of me.

Do you know what I am?

Asked by Neha on 23 Apr 2023

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.