feat(challenge-5): completed challenge #5

Merged
HenriqueSantosSantana merged 1 commits from feature/challenge-5 into develop 2022-10-27 23:59:33 +00:00

View File

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