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 English verb becomes past tense just by rearranging the letters?

Asked by Neha on 07 Sep 2025


What numbers should go on the bottom line?
3 6 9 15
8 2 10 12
11 8 19 27
19 10 29 39
? ? ? ?

Asked by Neha on 29 Apr 2022

There are three boxes on a table. One of the box contains Gold and the other two are empty. A printed message contains in each box. One of the message is true and the other two are lies.

The first box says "The Gold is not here".

The Second box says "The Gold is not here".

The Third box says "The Gold is in the Second box".

Which box has the Gold?

Asked by Neha on 07 Feb 2021


We have arranged an array of numbers below. What you have to do is use any kind of mathematical symbol you know excluding any symbol that contains a number like cube root. You can use any amount of symbols but you have to come up with a valid equation for all of them.

0 0 0 = 6
1 1 1 = 6
2 + 2 + 2 = 6
3 3 3 = 6
4 4 4 = 6
5 5 5 = 6
6 6 6 = 6
7 7 7 = 6
8 8 8 = 6
9 9 9 = 6

Asked by Neha on 19 Sep 2025

There are people and strange monkeys on this island, and you can not tell who is who (Edit: until you understand what they said - see below). They speak either only the truth or only lies.
Who are the following two guys?
A: B is a lying monkey. I am human.
B: A is telling the truth.

Asked by Neha on 16 Jun 2023

A Scientist was fifty years old in the year 2000 but he was forty years old in the year 2010. How can this be possible?

PS: It has a logical answer.

Asked by Neha on 20 Dec 2023


How many minutes are there in Feb 2017?

Note: The shortest answer is the correct answer.

Asked by Neha on 08 Aug 2024

There is a barrel with no lid and some wine in it. 'This barrel of wine is more than half full,' said Curly. 'No it's not,' says Mo. 'It's less than half full.' Without any measuring implements and without removing any wine from the barrel, how can they easily determine who is correct?

Asked by Neha on 05 May 2023

Can you solve this tricky maths equation problem by replacing it? mark with the correct symbol?

19834 -----: 187
15921 -----: 153
17561 -----: 139
13734 -----: ???

Asked by Neha on 28 May 2023


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

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.