Man sentenced for 'scary' assault on another prisoner