#第一個:求 50 - 100 之間的質數 import math for i in range(50, 100 + 1): for j in range(2, int(math.sqrt(i)) + 1): ...
www.cnblogs.com