Feat(Desafio_2.5): Cria resposta desafio 2.5 #5

Merged
Rhayllon_Daudt merged 1 commits from Feature/Desafio_2.5 into develop 2022-10-29 07:14:36 +00:00

View File

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