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

Can you count the number of triangles inside a triangle?

Triangles in a Triangle Riddle

Asked by Neha on 26 Mar 2026


In which direction should the missing arrow point?

Arrow Direction

Asked by Neha on 30 Dec 2024

I have Rs.50 and I spend it in the way as below.

Fund and Spends

Asked by Neha on 01 Oct 2023


A boy collects white seashells from the sea and brings them home every night. When he has enough of them, he decides to sell them to a trader.

The trader is ready to buy the shells and he asks the boy about the quantity. At this, the boy starts calculating. He has a giant box that contains 3 mini boxes. Two of them have another mini box inside. If the giant box can hold 50 shells, how many brown shells can he sell to the trader?

Asked by Neha on 25 Jun 2023

In the image given, you can find several triangles. Can you count them all?

How Many Triangles Are There Puzzle

Asked by Neha on 17 Apr 2025

The picture shows the dice results in each couple of throws. If they are actually following a pattern, can you find out the missing one?

Next Dice Movement

Asked by Neha on 02 Dec 2023


Solve the equation by replacing the alphabet with numbers.

MOM + MOM + NO = BOOK=

Asked by Neha on 06 Aug 2023

After a heavy Thanksgiving meal, the night watchman went to work. In the morning, he told his boss he had dreamed that a saboteur planted a bomb in the factory and that he felt it was a warning. The boss promptly fired him. Worker confused, Why boss fire him?

Asked by Neha on 28 Dec 2025

I sleep during the day and fly at night, but I have no feathers to aid my flight. What am I?

Asked by Neha on 28 Oct 2025


The richest man in the city Mr Rechard is kidnapped. James Bond is appointed to the case. At the crime scene, a note is found written by Mr Richard. The note read:

"First of January, Fourth of October, Fifth of March, Third of June."

James Bond knew that somehow, the killer's name was hidden in the note. The following were the suspects:

Jack Richard, the son and the heir of property.
John Jacobson, the employee of Richard.
June Richard, the wife of Richard.

James Bond took only a few moments to deduce the killer's name. Can you tell who was the killer?

Asked by Neha on 03 Jul 2024

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.