The pioneering primate, who helped reshape understanding of animal cognition, was 49 years old.