fork download
  1. # Prime number check
  2. def PrimeNumber(n):
  3. if(n==0 or n==1) : return False
  4. for i in range(2,n):
  5. if n%i==0:
  6. return False
  7. return True;
  8.  
  9. num = 3
  10. for i in range(num):
  11. n = int(input())
  12. if(PrimeNumber(n)):
  13. print("Prime Number")
  14. else:
  15. print("Not a Prime Number")
Success #stdin #stdout 0.03s 9888KB
stdin
7
13
17
stdout
Prime Number
Prime Number
Prime Number