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 first person saw the bridge step on it and crossed,
the second person saw the bridge did not step on it but crossed,
the third person did not see the bridge did not step on it but crossed.
Who are these people?

Asked by Neha on 14 May 2021


A man and a dog were going down the street. The man rode, yet walked. What was the dog’s name?

Asked by Neha on 10 Mar 2022

There is a jar in which there are two types of candies.
20 blueberries and 16 strawberries. You perform the following steps:
1) You take out two candies.
2) If the two candies are of the same flavour, you add a blueberry one otherwise, you add the strawberry one.

You repeat these two steps till there is just one candy remaining in the jar. Which flavoured candy will be left?

Asked by Neha on 30 Aug 2023


A new Engineering building containing 100 offices had just been completed. John was hired to paint the numbers 1 to 100 on the doors. How many times will John have to paint the number nine (9)?

Asked by Neha on 24 Feb 2024

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

One day, John and his friends were playing around. Jacob hit something with a Pin and it popped. John's dad came into the room that very moment, but he wasn't mad. In fact, he was smiling. What did Jacob hit?

Asked by Neha on 03 Jan 2025


The answer I give is yes, but what I mean is no. What was the question?

Asked by Neha on 04 Sep 2025

There once were seven dwarfs who were all brothers. They were all born two years apart. The youngest dwarf is seven years old. How old is his oldest brother?

Asked by Neha on 13 Jun 2025

Begin with a word, five letters to my name,
Remove the first and last but I am the same
Take out my middle and still, I remain.
What word am I?

Asked by Neha on 25 Jan 2025


You are on your way to visit your Friend, who lives at the end of the hill. It is his birthday, and you want to give him the cakes you have made. Between your house and his house, you have to cross 5 bridges, and as it goes in the land of make believe, there is a troll under every bridge! Each troll, quite rightly, insists that you pay a troll toll. Before you can cross their bridge, you have to give them half of the cakes you are carrying, but as they are kind trolls, they each give you back a single cake. How many cakes do you have to leave home to make sure that you arrive at a friend's house with exactly two

Asked by Neha on 20 Jan 2026

Hot Articles

Amazing Facts

Crossword puzzles

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