Last active
September 13, 2022 13:01
-
-
Save jahilldev/4c8705c62085b9d30c358065c4244747 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 isPrimeNumber(value) { | |
for(let index = 2; index < value; index++) { | |
if(value % index === 0) { | |
return false; | |
} | |
return value > 1; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment