(2)in a prison where male prisoners under the age of twenty-one are confined, means shall be provided for separating them altogether from the other prisoners and for separating those of them who have arrived at the age of puberty from those who have not;