feat:finalizando o Quinto Exercício

This commit is contained in:
tiago medeiros rodrigues 2022-11-02 16:36:41 -03:00
parent 68e197efe4
commit d8f39262a7

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