代码
提交代码
number = 9 factor = 2 while factor < number: print(factor) if number % factor == 0: is_prime = False break factor = factor + 1 else: is_prime = True print(is_prime)
运行结果