feat(05-isPrime)executa exercicio 5)

This commit is contained in:
Henrique Martins Silva 2022-10-28 22:57:13 -03:00
parent 3bcd58687b
commit 98281095ad

View File

@ -1,4 +1,12 @@
export function isPrime(value) {
// implementar logica aqui
let primo = true
for(let i = 2; i < value; i++){
if(value % i === 0){
primo = false
break
}
}
return primo
}