Skip to main content
2 de 2
se eliminaron 27 caracteres en el cuerpo
ArianJM
  • 3.4k
  • 10
  • 22
def is_prime(number):
  count = 0
  for i in range(1,number + 1):
    if i == 1 or i == number:
      continue
    if number % i == 0:
      count += 1
  if count == 0:
    return True
  else:
    return False

is_prime(7)