forked from M3-Academy/challenge-algorithms-v2.0
feat(desafio): Adiciona quinta tarefa concluida
This commit is contained in:
parent
f1125c7604
commit
7e5a62c8b2
@ -1,4 +1,7 @@
|
|||||||
export function isPrime(value) {
|
export function isPrime(value) {
|
||||||
// implementar logica aqui
|
// implementar logica aqui
|
||||||
|
for(let i = 2; i < value; i++)
|
||||||
|
if((value % i === 0))
|
||||||
|
value = false;
|
||||||
|
return value > 1;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user