-
-
Save mohitt/3828ff5028230013c33242bbbeddb5f0 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
input n | |
i=1 | |
while ( i is not equal to n-1) | |
k = n/i | |
if ( k equal to 0) | |
output "number is not a prime" | |
i = i +1 | |
output "number is a prime " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment