export function isPrime(value) { let contador = 0; for (let index = 0; index <= value; index++) { if (value % index === 0) { contador = contador + 1; } } if (contador === 2) { return true; } else { return false; } }