forked from M3-Academy/challenge-algorithms-v2.0
Develop #1
@ -1,4 +1,6 @@
|
||||
export function isPrime(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
for (let div = 2; div < value; div++)
|
||||
if (value % div == 0) return false;
|
||||
return true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user