輸出一個區間內全部的素數(質數)

請輸出20-100之間全部的素數 for i in range(20,100): j=2 while j<i: if i%j==0: break j+=1 else: print(i, "是質數")
相關文章
相關標籤/搜索