'Rotten borough' produced three Prime Ministers