Idiot savant
~noun
Entry: a person who exhibits an extraordinary ability in one subject (often mathematics) whilst being mentally retarded in all other fields.
@ Milton-Kindersley Advanced Dictionary