feature/challenge-algorithms #1

Merged
EleonoraOtz merged 11 commits from feature/challenge-algorithms into master 2022-11-01 20:41:51 +00:00
Showing only changes of commit 1176d331b2 - Show all commits

View File

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