用python計算0到一個數之內的所有質數

import math #導入包 cal_range=int(input('please enter the range of primer number:'))#輸入一個數 prime_nums=[] for i in range(cal_range+1): if i==0 or i==1: continue num=2 while num<=math.
相關文章
相關標籤/搜索