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

John is 45 years older than his son Jacob. If you find similarities between their ages, both of their ages contain prime numbers as the digits. Also, John's age is the reverse of Jacob's age.

Can you find their ages?

Asked by Neha on 11 Sep 2024


Solve the alphametic puzzle by replacing the alphabet with the number.

S T O R M +
S O L E S
=========
T O W E L
=========

Asked by Neha on 30 Jul 2024

The Federal bank of London is abducted by the robbers. The head of the robbers asked the cashier to empty their money vault to them and when suddenly cashier got a call from her father. To avoid any suspicion, the robber asked the cashier to pick the call and reply her father in the shortest manner possible.

The cashier told her father "Is there an emergency father, Call me when you are free and I will help you in your furnishing" and then the cashier hung up the phone.

After 10 minutes, police arrived at the crime scene.

How did the police know about the robbery?

Asked by Neha on 15 May 2021


I sleep during the day and fly at night, but I have no feathers to aid my flight. What am I?

Asked by Neha on 28 Oct 2025

I had an infinite supply of water and 5 litres and 3 litres jars.

How would you measure exactly 4 litres in the least number of steps?

Asked by Neha on 18 Nov 2025

Until it is measured, not known. Yet how you miss it when it has gone. What is it?

Asked by Neha on 30 Jul 2025


I came first on earth but second on the heaven.
I also came twice in a week but found just once in a year.
I stay away from months but you can find me in February.

What am I?

Asked by Neha on 01 Jan 2025

Rearrange the letters in "new door" to make one word.

Asked by Neha on 12 Dec 2023

Accidentally, two trains are running in the opposite direction and enter a tunnel that is 200 miles long. A supersonic bird that has fled the lab and taken shelter in the tunnel starts flying from one train towards the other at a speed of 1000 mph. As soon as it reaches the second train, he starts flying back to avoid collision and meets the first train again at the other end. The bird keeps flying to and fro till the trains collide with each other.

What is the total distance that the supersonic bird has traveled till the trains collided?

Asked by Neha on 21 Feb 2023


My grandson is about as many days as my son in weeks, and my grandson is as many months as I am in years. My grandson, my son and I together are 120 years. Can you tell me my age in years ?

Asked by Neha on 20 Jun 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.