feat(isprime): made fifth challenge

This commit is contained in:
Gabriel Ferreira Lehmann 2022-10-29 23:19:28 -03:00
parent c6f6df9c59
commit 43527c0fe6

View File

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