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

A and B have a certain number of chocolates with them. If B gives one chocolate to A, they will have an equal number of chocolates. But if A gives one chocolate to B, then A will be left with half the number of chocolates that B has.

Can you find out the number of chocolates they have right now?

Asked by Neha on 02 Apr 2023


A guy in his thirties is found dead in a forest. The shocking thing about the body is that he is wearing his swimming trunks snorkel and a facemask.

For your information, the nearest lake is some 10 miles away and the sea is hundreds of miles away.

How did he die then?

Asked by Neha on 15 Oct 2025

My thunder comes before the lightning; my lightning comes before clouds; my rain dries all the land it touches. What am I?

Asked by Neha on 10 Sep 2025


Decode the movie name from the below picture?

Movie Rebus

Asked by Neha on 26 Aug 2023

You walk into a creepy house by yourself. There is no electricity, plumbing, or ventilation. Inside you notice 3 doors with numbers on them. Once you open the doors you will die a particular way. Door No.1 You’ll be eaten by a lion who is hungry. Door No.2 You’ll be stabbed to death. Door No.3 There is an electric chair waiting for you. Which door do you pick?

Asked by Neha on 02 Sep 2025

It is a six-letter word.
The first four letters are me.
The second and last letters are the same.
The fourth second and last letter is payment.

Who is it?

Asked by Neha on 07 Feb 2024


Can you find a seven digit number which describes itself. The first digit is the number of zeros in the number. The second digit is the number of ones in the number, etc. For example, in the number 21200, there are 2 zeros, 1 one, 2 twos, 0 threes and 0 fours.

Asked by Neha on 23 Jul 2021

A woman is sitting in her hotel room and hears a knock at the door. She opens the door to see a man whom she’s never met before. He says, “I’m sorry, I have made a mistake, I thought this was my room.” He then goes down the corridor and into the elevator. The woman goes back into her room and calls security. What made the woman so suspicious of the man?

Asked by Neha on 22 May 2025

In a contest, four fruits (an apple, a banana, an orange, and a pear) have been placed in four closed boxes (one fruit per box). People may guess which fruit is in which box. 123 people participate in the contest. When the boxes are opened, it turns out that 43 people have guessed none of the fruits correctly, 39 people have guessed one fruit correctly, and 31 people have guessed two fruits correctly.
How many people have guessed three fruits correctly, and how many people have guessed four fruits correctly

Asked by Neha on 17 Aug 2023


All of Jacob's shoes are red except two.
All of Jacob's shoes are green except two.
All of Jacob's shoes are yellow except two.

How many shoes does Jacob have?

Asked by Neha on 15 Feb 2025

Hot Articles

Amazing Facts

Word ladder puzzle

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