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

A number with an interesting property:

When I divide it by 2, the remainder is 1.
When I divide it by 3, the remainder is 2.
When I divide it by 4, the remainder is 3.
When I divide it by 5, the remainder is 4.
When I divide it by 6, the remainder is 5.
When I divide it by 7, the remainder is 6.
When I divide it by 8, the remainder is 7.
When I divide it by 9, the remainder is 8.
When I divide it by 10, the remainder is 9.

It's not a small number, but it's not really big, either.
When I looked for a smaller number with this property I couldn't find one.

Can you find it?

Asked by Neha on 21 Nov 2024


Which is the correct shadow of the bird?

Correct Shadow Riddle

Asked by Neha on 23 Aug 2021

I got a bee but no honey.
got an eye but am still blind.
got a sea but no water.
got a tea but no coffee.
got a why but no answer.

What Am I?

Asked by Neha on 20 Mar 2024


Find the Odd One Out?
84129
32418
47632
36119
67626
72927

Asked by Neha on 05 Feb 2026

A four-digit number (not beginning with 0) can be represented by ABCD. There is one number such that ABCD=A^B*C^D, where A^B means A raised to the B power. Can you find it?

Asked by Neha on 31 Jul 2023

John and his wife were living in a rural place. On a particular day, John's wife fell ill and he called the local doctor. When the doctor picked up, he said, "Doctor, my wife is ill. She might have appendicitis."

"This can't be possible! I took out her appendix two years ago myself," the doctor explained.

When diagnosed, John's wife was found to have appendicitis. How can this be possible?

Asked by Neha on 19 Jun 2024


How many times can you subtract the number 5 from 25?

Asked by Neha on 05 Oct 2021

A plane crashed between the border of Mexico and America. Where do you bury the survivors?

Asked by Neha on 17 May 2021

One day, Birbal got late for a function and Akbar was highly disappointed.
Please forgive me Jahanpanah. I arrived late because my child was crying and I had to calm him down, explained Birbal.
Does it take this long to placate a child? questioned the emperor. I feel that you have no idea about how to raise a child. I order you to act like a child and I will act like your father to show you how you should have dealt with your child. Come on! Ask me all that he asked from you.
Father, I want a cow, said Birbal.
The emperor quickly ordered one of the servants to bring a cow to the kingdom.
I want to drink its milk, now, now, now! said Birbal, imitating the voice of his child.
Akbar asked his servants to milk the cow and give to Birbal.
The servants quickly milked the cow and offered the milk to Birbal. He sipped in a little and then gave the bowl to the emperor.
As Birbal put up the next demand that was put up by his child a few hours ago, the emperor was stunned and left the room.
What did Birbal say?

Asked by Neha on 17 May 2021


Find three numbers such that When we multiply three numbers, we will get the prime numbers. The difference between the second and the first number is equal to the third and second.

Asked by Neha on 20 Apr 2025

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.