feature/algoritmo #1

Merged
PatrickReisSantos merged 10 commits from feature/algoritmo into master 2022-11-02 16:06:18 +00:00
Showing only changes of commit b285c40b53 - Show all commits

View File

@ -1,4 +1,11 @@
export function isPrime(value) { export function isPrime(value) {
// implementar logica aqui for (let divisor = 2; divisor < value; divisor++)
if (value % divisor === 0) {
} return false;
}
return true;
/* for (var divisor = 2; divisor <= value; divisor++)
if (value % divisor == 0) return true;
else false; */
// implementar logica aqui 2 1 / 2
}