feature/algoritmos #1

Merged
LeonardoPereiraRocha merged 10 commits from feature/algoritmos into master 2022-11-02 20:24:57 +00:00
Showing only changes of commit fbe17ccd07 - Show all commits

View File

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