development #11

Merged
NicollyVieira merged 20 commits from development into master 2022-10-28 18:16:57 +00:00
Showing only changes of commit d355e811b4 - Show all commits

View File

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