// range = 1 o 20
for(let number=2 ; number<=20; number++){
let isPrime = true;
for (let i=2; i<= number-1;i++){
if(number%i===0){
isPrime = false;
break
}
}
if (isPrime) console.log(number);
}
// result = 2,3,5,7,11,13,17,19