Feat(Desafio_2.5): Cria resposta desafio 2.5

This commit is contained in:
Rhayllon Daudt 2022-10-29 04:13:54 -03:00
parent 56e918b956
commit 33f0b9cf1c

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
}