Created
June 4, 2021 03:49
-
-
Save sameerg07/0d08c57da55649ec1bb468a9dbbdc7df to your computer and use it in GitHub Desktop.
Check if a number is prime in python
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
n=int(input()) | |
#write your code here | |
if n%2 == 0 and n!=2 and n!=0: | |
print("number entered is not prime") | |
else: | |
print("number entered is prime") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment