diff --git a/05-isPrime/index.js b/05-isPrime/index.js index ec9c4ac..9959aee 100644 --- a/05-isPrime/index.js +++ b/05-isPrime/index.js @@ -1,4 +1,9 @@ export function isPrime(value) { // implementar logica aqui - + for (let n = 2; n < value; n++) + if (value % n === 0){ + return false + } + return value > 1 + } \ No newline at end of file