criando o codigo e achando os numero primos retornando true e false #4

Merged
PatrickSouzaSilva merged 1 commits from feature/is-prime into develop 2022-11-02 16:50:53 +00:00

View File

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