Merge branch 'feature/isPrime'

This commit is contained in:
Marcela Mathias 2022-11-02 17:18:29 -03:00
commit 996757b693

View File

@ -1,4 +1,10 @@
export function isPrime(value) {
// implementar logica aqui
}
let divisor = 2;
while (value % divisor != 0) divisor++;
if (value == divisor) {
return true;
} else {
return false;
}
}