# Hilbert's Prison

**Number Theory**Level 2

Initially all the prison doors are locked.

An infinite number of rioters break in and disturb the rooms in the following way.

First one stops at all rooms and opens them all.

Second rioter stops at rooms numbered 2, 4, 6,...... and locks open rooms, and leaving the other rooms as they were.

The third rioter stops at rooms numbered 3, 6, 9,.... and again opens a locked room and locks an open room, leaving others undisturbed.

And this process continues.

After all the infinite rioters have left, which rooms would be open?

**Your answer seems reasonable.**Find out if you're right!

**That seems reasonable.**Find out if you're right!

Already have an account? Log in here.