Merge branch 'feature/05-isPrime' into developer

This commit is contained in:
Matheus Mariosa 2022-11-02 13:37:05 -03:00
commit ff2afec8ab

View File

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