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

Four cars come to a four-way stop, each coming from a different direction. They can’t decide who got there first, so they all go forward at the same time. All 4 cars go, but none crash into each other. How is this possible?

Asked by Neha on 11 Aug 2025


There is a straight highway. Four different villages lie on that highway. The distance between them is different. The third village is 60km away from the first village; the fourth is 40 km away from the second; the third is 10 km near to the fourth that it is to the second.

Can you calculate the distance between the fourth and the first village ?

Asked by Neha on 23 Mar 2023

What has 13 hearts but no other organs?

Asked by Neha on 11 Mar 2022


Who always enjoys poor health?

Who enjoys poor health?

Asked by Neha on 22 Sep 2021

I have some blue and red sock in my drawer. I have a total of 4 socks. I pick 2 socks and the chance that I get a pair of red socks is 1/2.

What is the chance of picking a pair of blue socks?

Asked by Neha on 22 Mar 2023

A man has eighty-one cows ( numbered 1,2,3...81 as such). The beauty is that cow no. 1 gives 1ltr of milk, cow no. 2 gives 2ltrs of milk and so on. The man wants to equally distribute the cows among his nine sons so that each one of them gets the same quantity of milk.

Asked by Neha on 05 Jan 2024


In a contest, four fruits (an apple, a banana, an orange, and a pear) have been placed in four closed boxes (one fruit per box). People may guess which fruit is in which box. 123 people participate in the contest. When the boxes are opened, it turns out that 43 people have guessed none of the fruits correctly, 39 people have guessed one fruit correctly, and 31 people have guessed two fruits correctly.
How many people have guessed three fruits correctly, and how many people have guessed four fruits correctly

Asked by Neha on 17 Aug 2023

Which Number is the odd one out?

A) 7145
B) 2716
C) 5321
D) 4135

Asked by Neha on 10 Jan 2024

Replace the 'X' with any mathematical symbol to make the expression equal to 111.

18 X 12 X 2 X 3 = 111

Asked by Neha on 27 Jul 2024


I am beautiful, up in the sky. I am magical, yet I cannot fly. To people I bring luck, and to some people, riches. The boy at my end does whatever he wishes. What am I?

Asked by Neha on 27 May 2025

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.