André Nuñez Encalada
PreguntaEscribi el siguiente programa usando el teorema de wilson para saber si es un numero primo y no me corre alguien me puede ayudar
Def es_primo(numero):
pitatoria = 1 for i in range(1 numero): pitatoria = pitatoria * i pitatoria = pitaroria + 1 if pitarotia % numero == 0: return True else: return False
def run():
numero = int(input("Escribe un número: “))
if es_prim(numero):
print(” Es primo “)
else:
print(” No es Primo ")
if name == “main”:
run()
Kenny Ariel Tapia Vallecillo
Hola Andre! Parece que olvidaste separar el numero inicial y el numero final con coma dentro del range.
Deberia quedarte de esta manera:
for i in range(1, numero)