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

We know that the number 7 is the prime followed by a cube. Which next number is also a prime followed by a cube?

Asked by Neha on 05 Apr 2026


John leaves home and then he takes three right turns. John wants to return to home but he was scared of Jacob, who is wearing a mask.

What is John Situation ?

Asked by Neha on 18 Jan 2021

James Bond is caught up in a mysterious scenario where the evil villain has him blindfolded. He somehow breaks through the handcuffs but is unable to get the blindfold off. Upon searching, he comes across a bow and 3 arrows. He can hear the villain speak, and thus tries to take a shot at him. He launches the first arrow, it misses the villain. He then launches the second arrow and it misses by a greater margin.

What is the probability that this third shot our James bond takes will be worse than the second shot?

Asked by Neha on 21 Jun 2023


Can you spot what's wrong with the following sentence?

PETER WAS ANGRY AT
HIMSELF BECAUSE HE
ACCIDENTALLY LEFT THE
THE KEYS TO HIS CAR
AT HIS FRIEND'S HOUSE.

Asked by Neha on 03 May 2022

Below, you can see some coding:
January = 1017
February = 628
March = 1335
April = 145
May = 1353
June = 1064
July = 1074
August = 186

Now deciphering the way it has been coded, can you find out how September will be coded?

Asked by Neha on 30 Jan 2025

Why is the Hole below a Lock?

The Hole below a Lock

Asked by Neha on 22 Jul 2023


Use only one mathematical symbol and all numbers (0-9) to get a sum of 99

Asked by Neha on 07 Feb 2025

John left on a horse on Thursday , was gone for two days, and came back on Thursday after completing his work. How did that happen?

Asked by Neha on 23 Feb 2021

What animal walks on four legs in the morning, two legs during the day, and three legs in the evening?

Oedipus, the king of Thebes, figured out the answer to the riddle:

Asked by Neha on 13 Sep 2025


Identify the 10 differences between the two given pictures.

Pictures to Identify

Asked by Neha on 22 Dec 2023

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.