📜  在 python 代码示例中显示两个区间之间的素数

📅  最后修改于: 2022-03-11 14:46:49.849000             🧑  作者: Mango

代码示例3
lowernum = int(input(“Enter your lower number”))
uppernum = int(input(“Enter your upper number”))
for num in range(lowernum,uppernum +1):
  if num> 1:
     for num in range(2,num):
        if (num % 1) == 0:
                    break
            else:
                print(num)