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 21x = 79x, what is the value of x?

Asked by Neha on 19 Oct 2023


Make eight squares by moving only two matchsticks.
Note- Square can be of different sizes.

Make the Square

Asked by Neha on 12 Apr 2021

Can you arrange four 9's and use at most 2 math symbols, to make the total 100?

Asked by Neha on 21 Nov 2023


I have a sore throat and a severe headache. I have four tablets with me that are identical to each other and they do not have any cover on them. There is no way I can identify which tablet serves what purpose. The only thing that I know is that two of these four tablets are for the throat and the remaining two are for the headache. To treat my condition, I must take 1 of each. What will I do now?

Asked by Neha on 01 Jul 2026

In the Mexico City area, there are two Houses H1 and H2. Both H1 and H2 have two children each.
In House H1, The boy plays for Mexico Youth academy and the other child plays baseball.
In House H2, The boy Plays soccer for his school in Mexico and they recently have a newborn.

Can you prove that the probability of House-H1 having a girl child is more than that of House-H2?

Asked by Neha on 06 Jun 2024

Known by all without exception, Forever here, for your protection, Sometimes strong, sometimes weak, Right after the night I come - hot and chic. And while millions of miles away, I always get to you, I find my way. No life around could do without me, Can you guess what I might be?

Asked by Neha on 05 Apr 2022


Which word is least like the others? Third, fourth, fifth, sixth, seventh, eighth, ninth?

Asked by Neha on 28 Aug 2025

Use the numbers 2, 3, 4 and 5 and the symbols + and = to make a true equation. Conditions: Each must be used exactly once and no other numbers or symbols can be used.

Asked by Neha on 30 Sep 2021

Who is that with a neck and no head, two arms and no hands? What is it?

Asked by Neha on 27 Mar 2022


A boy and his father are caught in a traffic accident, and the father dies. Immediately the boy is rushed to a hospital, suffering from injuries. But the attending surgeon at the hospital, upon seeing the boy, says 'I cannot operate. This boy is my son.' How is this situation explained?

Asked by Neha on 20 Dec 2024

Hot Articles

Amazing Facts

Word ladder puzzle

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