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 wooden log balances equally on the scales when weighed with three-quarters of a pound and three-quarters of a wooden log.

Can you calculate the weight of the entire wooden log?

Asked by Neha on 22 Aug 2023


Next Number in the Series,

5, 16, 49, 104, ?

Asked by Neha on 31 Dec 2025

In a guessing game, five friends had to guess the exact numbers of apples in a covered basket.
Friends guessed 22, 24, 29, 33, and 38, but none of the guesses was correct. The guesses were off by 1, 8, 6, 3, and 8 (in random order).

Can you determine the number of apples in a basket from this information?

Asked by Neha on 23 Mar 2024


Two boys were admitted to a school. When the headmaster asks them about their parents, they tell him that they have same parents (father and mother). On further inquiry, it turns out that they both share the same date for their birthday.

"Are you twins," ask the headmaster.
"No," replies the boys.

Is it possible?

Asked by Neha on 22 Feb 2024

I have Rs.50 and I spend it in the way as below.

Fund and Spends

Asked by Neha on 01 Oct 2023

Okay before we begin with the puzzle, do keep in mind that you have to answer it quickly.

You are participating in a car race. Seeking the perfect moment, you overtake the second person in the race. What positions are you in now?

Asked by Neha on 22 Dec 2025


How many times can you subtract the number 5 from 25?

Asked by Neha on 05 Oct 2021

A mathematics teacher took exams for his students. Out of the total students, 25% passed both the tests included in the exam. However, only 42% were able to clear the first test.

Can you find out the percentage of those students who passed the first test and also passed the second test?

Asked by Neha on 21 Jan 2025

Can you find a rabbit in the given picture?

Hidden Picture Riddle

Asked by Neha on 08 Apr 2023


The measurement of time, That can't be found on a clock, But can be looked upon on a map.

Who is He ?

Asked by Neha on 30 Jan 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.