feat(challenge-5): completed challenge

This commit is contained in:
Henrique Santos Santana 2022-10-27 20:58:33 -03:00
parent e99efef366
commit 1b584da7b2

View File

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