{"image_url":null,"description":"\u7d20\u6570\u306b\u3064\u3044\u3066\u3002 \u7d20\u6570\u751f\u6210\u306e\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf def gen2(start=2, stop=1000000): pr = max(1, start - 1) while True: while pr < stop: pr += 1 if all(pr%x != 0 for x in range(2, int(pr**0.5) + 1)): break yield pr g = gen2() for i in range(10): print(next(g), end=\" \") print() # 2 3 5 7 11 13 17 19 23 29 \u7d20\u56e0\u6570\u5206\u89e3 # \u7d20\u56e0\u6570\u5206\u89e3 def factoria\u2026","type":"rich","provider_name":"Hatena Blog","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/22/121515","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","version":"1.0","published":"2017-05-22 12:15:15","height":"190","categories":["\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0","python"],"blog_url":"https://python-remrin.hatenadiary.jp/","title":"\u7d20\u6570","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F22%2F121515\" title=\"\u7d20\u6570 - Remrin\u306epython\u653b\u7565\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","width":"100%","provider_url":"https://hatena.blog","author_name":"rare_Remrin"}