{"image_url":null,"height":"190","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110614%2Fp1\" title=\"Project Euler 341 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","provider_url":"https://hatena.blog","url":"https://inamori.hateblo.jp/entry/20110614/p1","description":"http://projecteuler.net/index.php?section=problems&id=341\u3084\u3084\u3053\u3057\u305d\u3046\u3060\u3063\u305f\u304b\u3089\u305a\u3063\u3068\u653e\u7f6e\u3057\u3066\u3044\u305f\u304c\u3001\u7d44\u3093\u3067\u307f\u305f\u3089\u7c21\u5358\u3060\u3063\u305f\u3002 G\u3092\u7d20\u76f4\u306b\u8a08\u7b97\u3059\u308b\u3068\u304d\u3001\u30ea\u30b9\u30c8\u304b\u4f55\u304b\u304c\u5fc5\u8981\u304b\u3068\u601d\u3063\u305f\u304c\u3001\u3053\u3046\u66f8\u304f\u3068\u305d\u306e\u5fc5\u8981\u306f\u306a\u3044\u3002 from itertools import * def G(): yield 1 for k, n in enumerate(G(), 1): for m in xrange(n - 1): yield k yield k + 1 print list(islice(G(), 20)) G\u30922\u56de\u8a08\u7b97\u3057\u3066\u3044\u308b\u3051\u308c\u3069\u3001\u4e2d\u3067\u4f7f\u3063\u3066\u3044\u308bG\u2026","author_name":"inamori","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/inamori/","blog_title":"inamori\u2019s diary","published":"2011-06-14 00:00:00","width":"100%","blog_url":"https://inamori.hateblo.jp/","title":"Project Euler 341"}