idiot savant
noun
[ ˌiːdjəʊ saˈvɒ̃ ]
• a person who has a mental disability or learning difficulties but is extremely gifted in a particular way, such as the performing of feats of memory or calculation.
Origin:
French, literally ‘knowledgeable idiot’.