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 is the fewest number of coins that would be required in order to make sure each and every coin touches exactly three other coins?

Asked by Neha on 09 Feb 2025


Find three whole, positive numbers that have the same answer when multiplied together as when added together.

Asked by Neha on 01 Jan 2021

Spot the cat in the picture below

Spot the Cat

Asked by Neha on 11 Apr 2021


Which is faster, Heat or Cold ? Explain.

Heat or Cold ?

Asked by Neha on 23 Mar 2021

Can you divide the below-given shape into four equal and identical pieces?

Divide in Equal Shape

Asked by Neha on 27 Nov 2023

There once were seven dwarfs who were all brothers. They were all born two years apart. The youngest dwarf is seven years old. How old is his oldest brother?

Asked by Neha on 13 Jun 2025


What is in seasons, seconds, centuries and minutes but not in decades, years or days?

Asked by Neha on 03 Nov 2025

Count the number of times the letter "F" appears in the following paragraph:

FAY FRIED FIFTY POUNDS OF
SALTED FISH AND THREE POUNDS
OF DRY FENNEL FOR DINNER FOR
FORTY MEMBERS OF HER FATHER'S FAMILY.

Asked by Neha on 05 May 2022

How can you throw a ball as hard as you can and have it come back to you even if it doesn't hit anything there is nothing attached to it and no one else catches or throws it.

Asked by Neha on 06 Nov 2025


What is greater than gold but cannot be bought. it can never be sold and can earn if its sought. though it can be broken, it can still be fixed. for by birth it can't start nor by death it is ended.what am i?

Asked by Neha on 19 Mar 2022

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.