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 infinite number of mathematicians are standing behind a bar. The first asks the barman for half a pint of beer, the second for a quarter pint, the third an eighth, and so on. How many pints of beer will the barman need to fulfill all mathematicians' wishes?

Asked by Neha on 26 Feb 2023


A Japanese ship was en route to a mission on foreign seas. The captain of the ship felt tired and thought of taking a bath. He went for taking the shower and removed his diamond ring and Rolex and kept them on the table. When he returned after taking the bath, he found that the ring and watch were stolen.

He called the five members of the crew whom he suspected and asked them what they were doing for the last 15 minutes.

The Italian cook (with a butcher knife in hand): I was in the fridge room getting meat for cooking.

The British Engineer (with a high beam torch in hand): I was working on a generator engine.

The Pakistani seaman: I was on the mast correcting the flag which was upside down by mistake.

The Indian Radio officer: I was trying to make a contact with the company to inform them about our position.

The American navigation officer: I am on night watch, so I was sleeping in my cabin.

Upon listening to them, the captain caught the lying member. Who do you think stole the valuables?

Asked by Neha on 10 Apr 2024

What's the only room from which no one can enter or leave

Asked by Neha on 15 Apr 2024


I have a clock(12-hour format) and both the needles of the clock overlap at 12:00.
After how much time, they will overlap again?

Asked by Neha on 06 Jan 2024

There was a blind man. He had four socks in his drawer either black or white. He opened it and took out two socks. Now the probability that it was a pair of white socks is 1/2.

Can you find out the probability that he had taken out a pair of black socks ?

Asked by Neha on 19 Mar 2023

One is to three as three is to five and five is to four and four is the magic number.
What is the pattern?

Asked by Neha on 04 Oct 2021


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

Asked by Neha on 31 Oct 2023

I want to fill my bucket using both cold and hot water.
I have two taps for both cold and hot water. The hot water tap fills the bucket in exact 6 hours and the cold water tap fills the bucket in exact 4 hours.
I turn both of them simultaneously but I forgot to turn off another tap which removes the water out of the bucket. This tap can empty the bucket in 12 hours.

How Long will it take to fill the bucket?

Asked by Neha on 30 Sep 2023

Intelligence Agency need to break the vault but the problem is that they are not able to break the vault.

On the vault, a text is written as:

31 11 33 33 43 45
21 25
31 24 11 31 51 41

To Break the code Intelligence Agency brings a mathematician named Joseph.
Minutes later he deciphers the code.

Whats the code?

Asked by Neha on 14 May 2021


Can you write down eight eights so that they add up to one thousand?

Asked by Neha on 02 Apr 2022

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.