feat: Soluciona o exercício 05 - Is prime

This commit is contained in:
Eleonora Otz de Mendonça Soares 2022-10-28 16:16:49 -03:00
parent 2fed2845e9
commit 1176d331b2

View File

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