feature/algoritimos #1

Merged
RamonDiasFerreira merged 11 commits from feature/algoritimos into master 2022-11-02 19:48:31 +00:00
Showing only changes of commit f98db45a03 - Show all commits

View File

@ -1,4 +1,6 @@
export function isPrime(value) {
// implementar logica aqui
var start = 2;
while (start <= Math.sqrt(value)) if (value % start++ < 1) return false;
return value > 1;
}