fork download
  1. def is_prime(n):
  2. if n <= 1:
  3. return False
  4. for x in range(2, n):
  5. if n % x == 0:
  6. return False
  7. return True
  8.  
  9.  
  10. print(is_prime(20))
  11. print(is_prime(2002))
  12.  
Success #stdin #stdout 0.03s 63380KB
stdin
Standard input is empty
stdout
False
False