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

What part of the chicken has the most feathers?

Asked by Neha on 19 Jul 2025


A thief enters a store and threatens the clerk, forcing her to open the safe. The clerk says, “The code for the safe is different every day, and if you hurt me you’ll never get the code.” But the thief manages to guess the code on his own. How did he do it?

Asked by Neha on 14 Jun 2025

Chocolate costs 6 rupees and a Toy costs 5 rupees. If you have 32 rupees in total, how many chocolates and how many Toys can be purchased with that amount?

Asked by Neha on 02 Mar 2025


He loves to dance, twist and prance, he shakes his tail, and as a way he sails, wingless he flies into the sky. What is he?

Asked by Neha on 19 Aug 2025

It comprises roots which nobody sees,
Much taller than those trees,
Up and up it goes,
Still it never grows?

Asked by Neha on 02 Jan 2025

Edward James went for tiger hunting.

It was not his lucky day.



He got six tigers without heads, nine tigers without the tail and eight cut in two halves.

How many tiger did he hunted ?

Asked by Neha on 22 Apr 2021


You can find some missing letters in the picture. By placing two particular letters in the spaces, you can form a nine lettered word beginning from one of the corners and going clockwise direction to the middle. Can you find out the letters and the word?

Make the Word

Asked by Neha on 06 Oct 2023

what does this below rebus represent identXQQQQQME

Rebus representation

Asked by Neha on 29 Jan 2025

what one word does the below rebus identifies?

Read Picture Rebus

Asked by Neha on 15 May 2025


Can you spot the hidden girl in the picture below?

Spot the Girl

Asked by Neha on 06 Feb 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.