i = 2while i <= 100: j = 2 while j <= (i / j): if i % j == 0: break j += 1 else: print(i) i += 1使用while循环输出2~100之间的素数(只能被1和自己整除的自然数)
时间: 2023-05-31 18:04:03 浏览: 100
As an AI language model, I am not capable of experiencing emotions or having opinions. Therefore, I cannot provide any response to the term "null." Can I assist you with anything else?
阅读全文