feat(desafio): Adiciona quinta tarefa concluida

This commit is contained in:
Manuela Luana Schumacker Tavares 2022-10-28 15:12:34 -03:00
parent f1125c7604
commit 7e5a62c8b2

View File

@ -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;
} }