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

If two's company, and three's a crowd, then whats four and five ?

Complicated counting

Asked by Neha on 22 Feb 2021


You are given 16 witch hats. The hats are divided in four different colours – red, blue, green and yellow. Every colour has been assigned to four hats. Now each of the hat will be glued with a label of an arithmetic sign – ‘+’, ‘-‘, ‘x’ or ‘/’. But you can label one sign only once on one colour. In such an arrangement, the hats can be uniquely defined by its colour and symbol.

Can you arrange all the 16 hats in a 4x4 grid in a fashion that no two rows and columns have a repetition of colour or sign?
We have arranged four hats in the below picture to assist you.

Arrange Hats in Squares

Asked by Neha on 17 May 2021

Two Twins Jack and Jill were standing back to back and suddenly they started running in opposite direction for 4 kilometres and then turn to left and run for another 3 kilometres.

what is the distance between the Baggio twins when they stop ?

Asked by Neha on 31 Jul 2021


You are in a room with no metal objects except for two iron rods. Only one of them is a magnet.
How can you identify which one is a magnet?

Asked by Neha on 28 Feb 2024

What can go up a chimney down, but can’t go down a chimney up?

Asked by Neha on 12 Jul 2025

Replace the question mark with the correct number below.

Tree Problem

Asked by Neha on 19 Mar 2024


what's the probability of getting a king or a queen from a pack of 52 cards?

Asked by Neha on 27 Sep 2024

I know a ten-letter word in the English language which can be typed using only the top rows of the computer keyboard.

Asked by Neha on 18 May 2024

Three fair coins are tossed in the air and they land with heads up. Can you calculate the chances that when they are tossed again, two coins will again land with heads up?

Asked by Neha on 28 Mar 2024


who is silent in the parliament?

Asked by Neha on 29 Apr 2024

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.