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

I have 50 feet long of cloth, I need to create 50 handkerchiefs each size of 1 foot. I take one minute to cut a 1-foot handkerchief. So how long will it take to cut 50 handkerchiefs?

Asked by Neha on 05 Sep 2024


John is 45 years older than his son Jacob. If you find similarities between their ages, both of their ages contain prime numbers as the digits. Also, John's age is the reverse of Jacob's age.

Can you find their ages?

Asked by Neha on 11 Sep 2024

I don't get anymore wetter, no matter how much rain falls on me.

Asked by Neha on 22 Jan 2025


What three numbers, none of which is zero, give the same result whether they’re added or multiplied?

Asked by Neha on 26 Feb 2022

I am a five-letter word and people eat me. If you remove the first letter I become an energy form. If you remove the first two letters, I am needed to live. Scramble the last three letters and I am a drink. What word am I?

Asked by Neha on 28 May 2025

Which Number is the odd one out?

A) 7145
B) 2716
C) 5321
D) 4135

Asked by Neha on 10 Jan 2024


A landlord calls both of his sons and tells them that their horses will now decide who will transfer the inheritance. He tells them to race along the land till the end and the one whose horse will be slower will win and be the heir to all the property.

Both of them keep wandering for days but to no result. Then they ask a wise man regarding it. The man advises them on the matter after which they jump on the horses and race as fast as they can till the end. Why did they do it?

What did the wise man say?

Asked by Neha on 05 Nov 2025

If an earthquake is 1 point higher on the Richter Scale than another earthquake which is actually 10 times stronger, how much stronger would an earthquake be if it was just half a point higher on the Richter scale?

Asked by Neha on 23 Jun 2024

It begins where the time ends.
Its second is an expression of surprise.
Its third is a question.
Its fourth is urinate.
It ends with a drink.

Which country it is?

Asked by Neha on 21 Jul 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

Hot Articles

Amazing Facts

Gamers

In 2011, people playing Foldit, an online puzzle game about protein folding, resolved the structure of an enzyme that causes an Aids-like disease in monkeys. Researchers had been working on the problem for 13 years. The gamers solved it in three weeks.