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

Sally lives in a place where six months of the year is mild summer and the temperature drops significantly the other six months. She owns a lake where there is a small island. She wants to build a house on the island and needs to get materials there. She doesn’t have a boat, plane, or anything to transport them to the island. How does Sally solve this problem?

Asked by Neha on 09 Jun 2025


Role Action
Block Prevents the target player from acting
Redirect Change target player target.
Save Protects the target player from death.
Seer Sees all actions that occurred
Murderer Kills the target player

The following five players are playing:

Andy
Brian
Chris
Daniel
Fred

You are Andy the Seer and you saw the following things:
a) Brian was redirected to Chris.
b) Chris was blocked.
c) Daniel was killed.

Who is the murderer then?

Asked by Neha on 26 Mar 2025

What kind of band never plays music?

Asked by Neha on 14 Jul 2025


Complete the given grid with valid words. You can only use the letters AAEEIIMMPPTT.

Hint: The grid reads the same across as down.

English Winglish

Asked by Neha on 18 Jun 2024

I am a three digit number.
My tens digit is five more than my ones digit.
My hundreds digit is eight less than my tens digit.
What number am I?

Asked by Neha on 17 May 2021

What does Alexander the Great and Winnie the Pooh have in common?

Asked by Neha on 17 Jul 2025


John is pretty weird. He likes toffees but hates chocolates. He loves books but never reads. He likes to build his troops in an online game but does not proceed with the war. He likes to go swimming but is afraid of water.

Seeking this behaviour, can you tell whether he likes balloons and parties?

Asked by Neha on 05 May 2024

I live in a bowl. I can swim. I have a tail. I also have fins and big eyes. What am I?

Asked by Neha on 01 Nov 2025

Find the number of squares in the below picture

Count The Squares

Asked by Neha on 13 Apr 2021


Do You See It?

Do You See It?

Asked by Neha on 17 Feb 2022

Hot Articles

Amazing Facts

Crossword puzzles

In the 1920s, people feared that crossword puzzles would contribute to illiteracy.