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

A number can be multiplied by multiple of nine
i.e 9 18 27 36 45 ...

and the resulting number consist of only one digit.

Can you identify the number ?

Asked by Neha on 07 May 2023


What goes through cities and fields, but never moves?

Asked by Neha on 10 Mar 2025

Here is a conversation between a couple who both are software professionals.

Husband: Hey! What is your date of birth?
Wife Replied Angrily: It is 591062400
Husband after doing some calculations replied, "Got It".

What is the DOB of the wife?

Asked by Neha on 20 Feb 2025


When can we add 2 to 11 and get 1 as the correct answer?

Asked by Neha on 16 Oct 2023

A frog is at the bottom of a 30-meter well. Each day he summons enough energy for one 3-meter leap up the well. Exhausted, he then hangs there for the rest of the day. At night, while he is asleep, he slips 2 meters backwards. How many days does it take him to escape from the well?

Asked by Neha on 25 Nov 2024

Which of the below owl is odd one out?

Find the odd

Asked by Neha on 22 May 2021


How will you measure 15 minutes using two hourglasses of 7 minutes and 11 minutes respectively?

Asked by Neha on 07 Sep 2023

Why did Navjot Singh Sidhu put the new January calendar in the freezer

Asked by Neha on 01 Dec 2024

A boy was locked in a room by some robbers. All that is in the room is a piano, a calendar, and a bed. The room is locked from the outside. What does he eat, drink, and how does he escape and get out?

Asked by Neha on 08 Dec 2024


Today is a very icy and cold morning in Newcastle. Mr Shearer, an office bus driver arrived to pick up the employees from the last stop. Shearer suddenly remembers that he needs to pick a newly joined 4miles to the north. Mr Shearer lost his direction compass, a few minutes later Shearer is able to figure that he is moving in the correct direction i.e. north. How did Shearer know that he is moving in the correct direction?

Asked by Neha on 01 Aug 2024

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.