feat: solucao isPrime #5

Merged
Rafael_Sampaio_de_Oliveira merged 1 commits from feature/solucao-isPrime into development 2022-10-28 13:05:34 +00:00
Showing only changes of commit 8d311cb1e5 - Show all commits

View File

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