there he had spent three years huddled together with a bunch of other pimple-afflicted types who could not string a sentence together intelligibly , but who were frighteningly good at maths and had encyclopaedic memories for facts about all sorts of unlikely things .