forked from M3-Academy/challenge-algorithms-v2.0
feature/algoritimos #1
@ -1,4 +1,6 @@
|
||||
export function isPrime(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
var start = 2;
|
||||
while (start <= Math.sqrt(value)) if (value % start++ < 1) return false;
|
||||
return value > 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user