 Créer un programme informatique pour lister les 10 premiers nombres premiers.
function listFirstTenPrimes() {\n let primeNumbers = [];\n let index = 2;\n while (primeNumbers.length < 10) {\n let isPrime = true;\n for (let i = 2; i <= Math.sqrt(index); i++) {\n if (index % i === 0) {\n isPrime = false;\n break;\n }\n }\n if (isPrime) {\n primeNumbers. push(index);\n }\n \n index++;\n }\n \n return primeNumber;\n}