idiot savant

Etymology
From, literally ‘wise idiot’.

Noun

 * 1)  A person who exhibits an extraordinary ability in one subject (often mathematics) whilst being  in many other domains.

Usage notes

 * The more current term is.