forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat: solucao isPrime' (#5) from feature/solucao-isPrime into development
Reviewed-on: #5
This commit is contained in:
commit
1ae65b7709
@ -1,4 +1,8 @@
|
||||
export function isPrime(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
for (let i = 2; i < value; i++)
|
||||
if (value % i === 0) {
|
||||
return false;
|
||||
}
|
||||
return value > 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user