forked from M3-Academy/challenge-algorithms-v2.0
6 lines
169 B
JavaScript
6 lines
169 B
JavaScript
export function isPrime(value) {
|
|
// implementar logica aqui
|
|
for (let div = 2; div < value; div++)
|
|
if (value % div == 0) return false;
|
|
return true;
|
|
} |