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

He does not have any heart but still, He manages to live.
If you kill him, you will eventually die but yet you kill him.
He cannot run, who is He?

Asked by Neha on 21 Dec 2025


When Jack was six years old he hammered a nail into his favourite tree to mark his height. Ten years later at age sixteen, Jack returned to see how much higher the nail was. If the tree grew by five centimetres each year, how much higher would the nail be?

Asked by Neha on 17 May 2021

If you're 8 feet away from a door and with each move you advance half the distance to the door. How many moves will it take to reach the door?

Asked by Neha on 13 Aug 2023


There are two beautiful yet remote islands in the South Pacific. The Islanders born on one island always tell the truth, and the Islanders from the other island always lie.
You are on one of the islands and meet three Islanders. You ask the first which island they are from in the most appropriate Polynesian tongue, and he indicates that the other two Islanders are from the same island. You ask the second Islander the same question, and he also indicates that the other two Islanders are from the same island.
Can you guess what the third Islander will answer to the same question?

Asked by Neha on 03 Jan 2026

A doctor and a boy were fishing. The boy was the doctor’s son, but the doctor was not the boy’s father. Who was the doctor?

Asked by Neha on 04 Mar 2022

It begins where the time ends.
Its second is an expression of surprise.
Its third is a question.
Its fourth is urinate.
It ends with a drink.

Which country it is?

Asked by Neha on 21 Jul 2021


If all Goats are Sheep and all Sheep are Deers, are all Deers Goats ?

Asked by Neha on 16 Jan 2021

You can see three almost identical images below. Can you spot the odd one out from them?


Find the Odd One Out

Asked by Neha on 17 May 2021

Can you replace the X (both small and big x) with the numbers between 1 to 19 such that all the rows of 3 numbers between X (big x) sum to 23?

Replace Shaped Puzzle

Asked by Neha on 05 Oct 2025


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

Asked by Neha on 17 Jul 2025

Hot Articles

Amazing Facts

No Solution

In 2007, a puzzle was released and $2 million prizes were offered for the first complete solution. The competition ended at noon on 31 December 2010, with no solution being found. Wiki