forked from M3-Academy/challenge-algorithms-v2.0
Feat(Desafio_2.5): Cria resposta desafio 2.5
This commit is contained in:
parent
56e918b956
commit
33f0b9cf1c
@ -1,4 +1,9 @@
|
||||
export function isPrime(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
for (let n = 2; n < value; n++)
|
||||
if (value % n === 0){
|
||||
return false
|
||||
}
|
||||
return value > 1
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user