Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/prime.py Secret

Created Feb 21, 2021
Embed
What would you like to do?
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