fork download
  1. def is_prime(n):
  2. if n <= 1:
  3. return False
  4. for i in range(2, int(n**0.5) + 1):
  5. if n % i == 0:
  6. return False
  7. return True
Success #stdin #stdout 0.02s 7092KB
stdin
5
stdout
Standard output is empty