The Obama administration has decided to continue to imprison without trials nearly 50 detainees at the Guantánamo Bay military prison in Cuba because a high-level task force has concluded that they are too difficult to prosecute but too dangerous to release, an administration official said on Thursday.

However, the administration has decided that nearly 40 other detainees should be prosecuted for terrorism or related war crimes. And the remaining prisoners, about 110 men, should be repatriated or transferred to other countries for possible release, the official said, who spoke on the condition of anonymity because he was not authorized to speak about the numbers.