develop #1

Merged
affonso_kopmann merged 11 commits from develop into master 2022-10-30 18:58:45 +00:00
Showing only changes of commit 0de9bd577c - Show all commits

View File

@ -1,4 +1,16 @@
export function isPrime(value) {
// implementar logica aqui
{ if ( value === 1 ) {
return false;
} else if ( value === 2 ) {
return true;
} else {
for ( var x = 2; x < value; x++ ) {
if ( value % x === 0 ) {
return false;
}
}
return true;
}
}
}