Created
August 8, 2019 01:36
-
-
Save parzibyte/0404a158d124cf2e1826be0e7557db80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function primo(numero) { | |
for (var i = 2; i < numero; i++) { | |
if (numero % i === 0) { | |
return false; | |
} | |
} | |
return numero !== 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment