Medical Term

idiot savant

someone who, although suffering severe mental retardation, is able to perform unusual and often astonishing mental feats or who exhibits remarkable musical ability. Examples are feats of memory, complex mental mathematical manipulations or the ability to memorize previously unheard music and then play it accurately.

Source: mediLexicon corpus · slug idiot-savant