Nuclear reactor for space