每日一题2019.10.9

# coding=utf-8
"""输出指定区间的素数"""
num = []
lower = int(input("please input the low num"))
higher = int(input("please input the high num"))


def ifSuNum(n):
if n <=1:
return
else:
for i in range(2, n):
if n % i == 0:
break
else:
num.append(n)

if __name__ == '__main__':
for x in range(lower, higher+1):
ifSuNum(x)
print(num)

#国庆休假结束了 又要开始勤奋的学习了233333~
posted @ 2019-10-09 21:10  雪瞳  阅读(107)  评论(0编辑  收藏  举报