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

An equation has been laid down using a few matchsticks. However, as you can see, the equation is not correct. Can you correct the equation if you are allowed to add or remove 5 matchsticks?

Correct the Equation

Asked by Neha on 14 May 2021


The great emperor Akbar once ruled India. He was well known for his intelligence. But along with that, he was known for the Nine Gems in his court. One of the nine gems was Birbal, a quick witted and extremely intelligent man. The stories of his wit were widely popular.

Once a king ruling in a distant land heard of Birbal. To check his wit, he sent an invitation and called him to visit his land. Akbar allowed Birbal to go and he took off on the journey.

Upon reaching that kings kingdom, he was welcomed with flowers. He was then escorted to the palace of the king. Upon entering the palace, Birbal found that there were six people sitting in front of him adorning the same robe. They were also lookalike and it was hard to judge who the real king was.

After a couple of minutes, Birbal approached one of them and bowed in front of him greeting him.

That was the real king. How did Birbal know who was the real king ?

Asked by Neha on 10 May 2021

The first two letters signify a male, the first three letters signify a female, the first four letters signify a great, while the entire world signifies a great woman. What is the word?

Asked by Neha on 18 Mar 2025


What is the end of everything?

Asked by Neha on 18 Jul 2025

Five teams were competing in cricket where they faced each other exactly once. After the tournament, the following is the point table.

DareDevils 6
SuperKings 5
Royals 4
Sunrisers 2
Riders ?

How many points did Riders end up with?

Asked by Neha on 14 Nov 2025

I am a type of room you cannot enter or leave. Raised from the ground below, I could be poisonous or a delicious treat. What am I?

Asked by Neha on 12 Apr 2022


Find the smallest sentence with all the English alphabet.

Asked by Neha on 21 Sep 2025

Can you count the number of quadrilaterals in the picture below?

Count the Quadrilaterals

Asked by Neha on 14 Mar 2023

Can you find out the remainder when 3^300 is divided by 5?

Asked by Neha on 31 Oct 2023


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

Hot Articles

Amazing Facts

Word ladder puzzle

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