forked from M3-Academy/challenge-algorithms-v2.0
Merge branch 'release/v5.00'
This commit is contained in:
commit
e9b0081298
@ -1,4 +1,13 @@
|
||||
export function isPrime(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
if(value === 1){
|
||||
return false
|
||||
}else{
|
||||
for(let divisor = 2; divisor < value; divisor++){
|
||||
if((value%divisor === 0)){
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
Loading…
Reference in New Issue
Block a user