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:
Rhayllon Daudt 2022-10-29 07:14:36 +00:00
commit 2a1ac50a22

View File

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