Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created February 21, 2021 07:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amankharwal/9ddb20db8592b370f7c4d04d140190b5 to your computer and use it in GitHub Desktop.
def check_prime(n):
for i in range(2, n):
if n % i == 0:
return "Not Prime"
break
return "Prime"
print(check_prime(10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment