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 Logic Riddles

Two guards were on duty outside a barracks. One faced up the road to watch for anyone approaching from the North. The other looked down the road to see if anyone approached from the South. Suddenly one of them said to the other, "Why are you smiling?"

How did he know his companion was smiling?

Asked by Neha on 24 Apr 2022


A Doctor always sneezes before the rain. Doctor sneezes, Will it rain?

Asked by Neha on 24 Jul 2024

Today, I celebrated my 32nd birthday but I was born in 1972.
How is this possible?

Asked by Neha on 01 May 2025


Dwayne Johnson was running away with the loot from a heist in his car along with Vin Diesel. One tire was punctured and he dropped down to replace it. While changing the wheel, he dropped the four nuts that were holding the wheel and they fell into a drain. Vin Diesel gave him an idea using which they were able to drive till the rendezvous point.

What was the idea ?

Asked by Neha on 10 Apr 2023

There is a box in which distinct numbered balls have been kept. You have to pick two balls randomly from the lot.

If someone is offering you a 2 to 1 odds that the numbers will be relatively prime, for example
If the balls you picked had the numbers 6 and 13, you lose $1.
If the balls you picked had the numbers 5 and 25, you win $2.

Will you accept that bet?

Asked by Neha on 11 Mar 2023

You and your two friends are working in a multinational company. How can you three find out the average salary of you all without disclosing your own salary to the other two?

Asked by Neha on 26 Nov 2025


There is a barrel with no lid and some wine in it. 'This barrel of wine is more than half full,' said Curly. 'No it's not,' says Mo. 'It's less than half full.' Without any measuring implements and without removing any wine from the barrel, how can they easily determine who is correct?

Asked by Neha on 05 May 2023

I have some blue and red sock in my drawer. I have a total of 4 socks. I pick 2 socks and the chance that I get a pair of red socks is 1/2.

What is the chance of picking a pair of blue socks?

Asked by Neha on 22 Mar 2023

It is Secret Agent Bond Girl Friend's birthday but he is on a secret mission

Mr Bond has a secret device by which he can only use the below words for sending the message.

Dumbo, Nazi, Carrot, Ronda, Zambia, Racing, TinTin, Seou, Zareeba, Laltain, Saphire, Tar, Orphan, Audition, Biscotti.

Mr Bond sends the following message to her girlfriend:
Carrot Dumbo Nazi Racing Ronda Zambia TinTin Seou Laltain Zareeba Tar Biscotti Orphan Audition Snake

What does Mr. Bond's Message say?

Asked by Neha on 12 Apr 2026


There is a bag which have 21 blue balls and 23 red balls. You also have 22 red balls outside the bag. Randomly remove two balls from the bag. * If they are of different colors, put the blue one back in the bag. * If they are the same colour, take them out and put a red ball back in the bag. Repeat this until only one ball remains in the bag. What is the color of the sole ball left in the bag ?

Asked by Neha on 13 Mar 2026

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.