Merge pull request 'feat: solucao isPrime' (#5) from feature/solucao-isPrime into development

Reviewed-on: #5
This commit is contained in:
Rafael Sampaio de Oliveira 2022-10-28 13:05:34 +00:00
commit 1ae65b7709

View File

@ -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;
}