Merge branch 'new_branch_5'

This commit is contained in:
Nathalia Sardou 2022-11-02 00:43:47 -03:00
commit 85bc6e32bb

View File

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