feature/algoritmos #1

Merged
cainamilech merged 12 commits from feature/algoritmos into master 2022-10-29 19:58:08 +00:00
Showing only changes of commit e7aa3ebfa4 - Show all commits

View File

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