diff --git a/05-isPrime/index.js b/05-isPrime/index.js index 5d8e1f4..b24fc68 100644 --- a/05-isPrime/index.js +++ b/05-isPrime/index.js @@ -2,22 +2,22 @@ export function isPrime(value) { // implementar logica aqui let primo; if ( - number == 2 || - number == 3 || - number == 5 || - number == 7 || - number == 11 || - number == 13 + value == 2 || + value == 3 || + value == 5 || + value == 7 || + value == 11 || + value == 13 ) { primo = true; } else { primo = - number % 2 != 0 && - number % 3 != 0 && - number % 5 != 0 && - number % 7 != 0 && - number % 11 != 0 && - number % 13 != 0 + value % 2 != 0 && + value % 3 != 0 && + value % 5 != 0 && + value % 7 != 0 && + value % 11 != 0 && + value % 13 != 0 ? "true" : "false"; }