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

You along with your friend are standing in front of two houses. Each of those houses inhabits a family with two children.

Your friend tells you the below two facts:
1) On your left is a family that has a boy who likes accounts but the other child loves science.
2) On the right is a family with a seven-year-old boy and a newborn baby.

You ask him, "Does either of the family have a girl?"

To this, he replies, "I am not quite sure. But can you guess that? If you are right, I will give you $500."

Which family do you think is likely to have a girl?

Asked by Neha on 30 Nov 2024


I am a number I am not an odd number I am higher than 90 I am not higher than 100 If you subtract me from 100, you get nothing. What number am I?

Asked by Neha on 21 Feb 2022

How many letters are in the alphabet?

Asked by Neha on 04 Nov 2025


You may enter, but you may not come in. I have space, but no room. I have keys, but open no lock. What am I?

Asked by Neha on 23 Oct 2021

Is the statement valid that it does not matter how much older a sibling is, eventually the younger one will be half as old as the older one?

Asked by Neha on 23 Feb 2023

In 1990, a person is 15 years old. In 1995, that same person is 10 years old. How can this be?

Asked by Neha on 06 Jul 2025


During an interview, the interviewer ordered hot coffee for the candidate to relieve the stress. The coffee was kept before him. After a minute, the interviewer asked him, 'What is before you?' He replied 'Tea'.

The candidate was selected immediately. Why?

Asked by Neha on 16 Jun 2024

If you go to the movies and you're paying, is it cheaper to take one friend to the movies twice, or two friends to the movies at the same time?

Asked by Neha on 16 Apr 2022

French Police inspects a room where there are no windows, no doors, no tables and is almost empty expect there is just a puddle of water. They found a dead man who obviously hung herself from the ceiling, but they are not able to figure out how this had happened.

John and Jacob entered the crime scene and easily able to solve the case.

How did the man die?

Asked by Neha on 09 Sep 2021


He runs but never walks. Murmurs, but never talks. Has a bed, but never sleeps. And has a mouth, but never eats?

Asked by Neha on 24 Jul 2025

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.