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

Can you replace the X (both small and big x) with the numbers between 1 to 19 such that all the rows of 3 numbers between X (big x) sum to 23?

Replace Shaped Puzzle

Asked by Neha on 05 Oct 2025


On a special event at the prison, 5 prisoners John, Jacob, Krist, Tang, and Dang given a chance to go to a sauna and can bring one thing with them.

Following are the things that the prisoners bring with them.
John: A soda
Jacob: Thermos
Krist: Book named "How to kill"
Tang: A Walkman
Dang: Harmonica

Since it is a Sauna, no one can see each other. After a while When the steam is switched, Tang was found dead and there was blood all around.
J Bond was called and he instantly come to know who can be the murderer. How?

Asked by Neha on 07 Jul 2024

A Man gave one of his sons 10 cents and another son was given 15 cents. What time is it?
Hint: Figure out the relation between time and number, is not so easy..:)

Asked by Neha on 02 Nov 2023


I look flat, but I am deep. Hidden realms I shelter. Lives I take, but the food I offer. At times I am beautiful. I can be calm, angry, and turbulent. I have no heart but offer pleasure as well as death. No man can own me, yet I encompass what all men must have. What am I?

Asked by Neha on 01 Jun 2025

A family is trapped in a jungle. There is a bridge which can lead them to safety. But at one time, the bridge can only allow two people to pass through. Also, all of them are afraid of the dark and thus, they can't go alone.

Father takes 1 minute to cross, the mother takes 2 minutes, the son takes 4 and the daughter takes 5 minutes. While crossing the time taken will be according to the slower one. How can they all reach the other side in the minimum possible time?

Asked by Neha on 09 Aug 2024

A girl says this to her best friend: “I was born in 1955, and I celebrated my 17th birthday last weekend.” Her best friend thinks she’s lying, but she’s actually correct. How is that possible?

Asked by Neha on 12 Jun 2025


If you say my name, I will no longer exist. What am I?

Asked by Neha on 18 Dec 2023

Forwards I am heavy, backward I am not. What am I?

Asked by Neha on 01 Aug 2025

What came first, the chicken or the egg?

Asked by Neha on 29 Dec 2025


Can you find out the smallest number that can be conveyed as the sum of three squares in three unique ways?

Asked by Neha on 27 Aug 2023

Hot Articles

Amazing Facts

Gamers

In 2011, people playing Foldit, an online puzzle game about protein folding, resolved the structure of an enzyme that causes an Aids-like disease in monkeys. Researchers had been working on the problem for 13 years. The gamers solved it in three weeks.