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

Two Twins Jack and Jill were standing back to back and suddenly they started running in opposite direction for 4 kilometres and then turn to left and run for another 3 kilometres.

what is the distance between the Baggio twins when they stop ?

Asked by Neha on 31 Jul 2021


A solo dice game is played. In this game, upon each turn, a normal pair of dice is rolled and the score is calculated not by adding the numbers but multiplying them.

In a particular game, the score for the second roll is five more than what was achieved in the first roll. The score for the third roll is six less than what was completed in the second roll. The score for the fourth roll is eleven more than what was achieved in the third. The score for the fifth roll is eight less than what was completed in the fourth.

Can you calculate the score for each of the five throws?

Asked by Neha on 04 Jun 2024

It's a test that will check your IQ.

Suppose you have one 11 minute hourglass and one 13 minute hourglass.

Can you measure exactly fifteen minutes using them ?

Asked by Neha on 01 Jul 2021


In front of you, there are 9 coins. They all look absolutely identical, but one of the coins is fake. However, you know that the fake coin is lighter than the rest, and in front of you is a balance scale. What is the least number of weightings you can use to find the counterfeit coin?

Asked by Neha on 20 Nov 2025

A man is sitting in a pub feeling rather poor. He sees that the man next to him is extremely rich. He turns to the rich man and says to him, 'I have an amazing talent; I know almost every song that has ever existed.'
The rich man laughs.
The poor man says, 'I am willing to bet you all the money you have in your wallet that I can sing a genuine song with a lady's name of your choice in it.'
The rich man laughs again and says, 'OK, how about my daughter's name, Joanna Armstrong-Miller?'
The rich man goes home poor. The poor man goes home rich.

What song did he sing? A man is sitting in a pub feeling rather poor. He sees the man next to him pull a wad of £50 notes out of his wallet. He turns to the rich man and says to him, 'I have an amazing talent; I know almost every song that has ever existed.' The rich man laughs. The poor man says, 'I am willing to bet you all the money you have in your wallet that I can sing a genuine song with a lady's name of your choice in it.' The rich man laughs again and says, 'OK, how about my daughter's name, Joanna Armstrong-Miller?' The rich man goes home poor. The poor man goes home rich. What song did he sing?

Asked by Neha on 01 Feb 2026

A Club organizes a Running Race, and John, Jacob, Minda, and Tony participated.

The results are as follows

John beats Jacob
Minda beats Toni
Toni beats John

Who came first in the race?

Asked by Neha on 23 May 2024


What brings you down but never up?

Asked by Neha on 22 Oct 2021

I am the first thing you need while camping.
I am always with the person named Marcos Valencia and Carrick.
But Pogba Zlatan and Rooney think I am wasteful and do not need me.
I am the second to the last thing to add when you are making a patch.

What am I?

Asked by Neha on 16 Dec 2024

Take one out and scratch my head, I am now black but once was red. What am I?

Asked by Neha on 29 Jul 2025


On a special event at the prison, 5 prisoners John, Jacob, Krist, Tang, and Dang given a chance to go to a sauna and can bring one thing with them.

Following are the things that the prisoners bring with them.
John: A soda
Jacob: Thermos
Krist: Book named "How to kill"
Tang: A Walkman
Dang: Harmonica

Since it is a Sauna, no one can see each other. After a while When the steam is switched, Tang was found dead and there was blood all around.
J Bond was called and he instantly come to know who can be the murderer. How?

Asked by Neha on 07 Jul 2024

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.