develop #11

Merged
nicolasrosadeoliveira merged 20 commits from develop into master 2022-10-29 19:56:35 +00:00
Showing only changes of commit 2ed084cc0b - Show all commits

View File

@ -1,4 +1,13 @@
export function isPrime(value) { export function isPrime(value) {
// implementar logica aqui // implementar logica aqui
if(value == 0 || value == 1) {
return false
}
for(let div = 2; div <= Math.sqrt(value); div++){
if(value % div == 0) {
return false
}
}
return true
} }