Prisoners got freed

100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?




Similar Riddles

The captain of a ship was telling this interesting story: "We travelled the sea far and wide. At one time, two of my sailors were standing on opposite sides of the ship. One was looking west and the other one east. And at the same time, they could see each other clearly." How can that be possible?

Asked by Neha on 26 Mar 2024


How can you write nineteen in a manner that if we take out one, it becomes twenty?

Asked by Neha on 23 Nov 2023

Find the mistake in the below maths equations

A = 2
A(A-1) = 2(A-1)
A2-A = 2A-2
A2-2A = A-2
A(A-2) = A-2
A = 1

Asked by Neha on 15 Oct 2024


Birbal was jester, counsellor, and fool to the great Moghul emperor, Akbar.
The villagers loved to talk of Birbal's wisdom and cleverness,
and the emperor loved to try to outsmart him.
One day Akbar (emperor) drew a line across the floor.
"Birbal," he ordered, "you must make this line shorter, but you cannot erase any bit of it."
Everyone present thought the emperor had finally outsmarted Birbal.
It was clearly an impossible task.
Yet within moments the emperor and everyone else present had to agree that Birbal had made the line shorter without erasing any of it.
How could this be?

Asked by Neha on 17 May 2021

Can you find out the next digit in the following series ?

0, 0, 1, 3, 2, 6, 3, 9, 4, 12, 5, ?

Asked by Neha on 22 Jan 2021

John Went to the nearby store in a Mall to buy something for her home. Below is the conversation between the two:

John: How much for the one?
Shopkeeper: It is $2
John: How much for the Eleven?
Shopkeeper: It is $4
John: How much for the Hundred?
Shopkeeper: It is $6.

What is John buying?

Asked by Neha on 01 Dec 2025


What is a word made up of 4 letters, yet is also made up of 3. Sometimes is written with 9 letters, and then with 4. Rarely consists of 6, and never is written with 5.

What has 4 Letters

Asked by Neha on 15 Mar 2024

I am dry when I go inside, but wet when I am pulled outside.
The longer I am inside, the stronger I get
When I am completely out, I am wet and I literally sag
Who am I?

Asked by Neha on 11 Feb 2026

How can you take 2 from 5 and leave 4?

Asked by Neha on 03 Apr 2022


The measurement of time, That can't be found on a clock, But can be looked upon on a map.

Who is He ?

Asked by Neha on 30 Jan 2021

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.