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

Count the number of balls in picture below:


Count The Balls

Asked by Neha on 21 May 2021


A chicken farmer has figured out that a hen and a half can lay an egg and a half in a day and a half. How many hens does the farmer need to produce one dozen eggs in six days?

Asked by Neha on 30 Dec 2020

A farmer and his neighbour once went to Emperor Akbar"s court with a complaint. "Your Majesty, I bought a well from him," said the farmer pointing to his neighbour, "and now he wants me to pay for the water."
"That"s right, your Majesty," said the neighbour. "I sold him the well but not the water!"?
The Emperor asked Birbal to settle the dispute. How did Birbal solve the dispute?

Asked by Neha on 10 May 2021


Can you convert the number zero(0) into a positive number using just one mathematical operator ?

Asked by Neha on 16 Mar 2024

There was a greenhouse.
Inside the greenhouse, there is a white house.
Inside the white house, there is a red house.
Inside the red house, there are lots of babies.

What is It?

Asked by Neha on 07 Oct 2025

Two in a corner, one in a room, zero in a house, but one in a shelter. What am I?

Asked by Neha on 23 Jul 2025


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

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

I never stop running even when I standstill. If I am formed by joining two identical bodies together, can you guess who I am?

Asked by Neha on 28 Mar 2023


Thomas has missed an excessive number of days of school, so he must meet with Principal Davis. Mr. Davis asks him "Why on Earth have you missed so many days?" Thomas replies "There just isn't enough time for school. I need 8 hours of sleep a day, which adds up to about 122 days a year. Weekends off is 104 days a year. Summer vacation is about 60 days. If I spend about an hour on each meal, that's 3 hours a day or 45 days a year. I need at least 2 hours of exercise and relaxation time each day to stay physically and mentally fit, adding another 30 days. Add all of that up and you get about 361 days. That only leaves 4 days for school." The principal knows Thomas is full of it, but can't figure out why. Where is Thomas going wrong?

Asked by Neha on 03 Feb 2026

Hot Articles

Amazing Facts

Word ladder puzzle

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