feature/algorithms #1

Merged
naianfelix merged 10 commits from feature/algorithms into master 2022-10-28 14:00:26 +00:00
Showing only changes of commit 0cd09a0455 - Show all commits

View File

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