摘要: import math a = [p for p in range(2, 100) if 0 not in [p % d for d in range(2, int(math.sqrt(p)) + 1)]] print(a) [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 阅读全文
posted @ 2021-10-11 09:13 木子欢儿 阅读(1149) 评论(0) 推荐(0) 编辑