forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'Feat(Desafio_2.5): Cria resposta desafio 2.5' (#5) from Feature/Desafio_2.5 into develop
Reviewed-on: #5
This commit is contained in:
commit
2a1ac50a22
@ -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