{"author_name":"inamori","url":"https://inamori.hateblo.jp/entry/20130712/p1","description":"Python\u306e\u8f9e\u66f8\u306e\u4ee3\u66ff\u306b\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u306fDictionary\u3067\u3059\u3002Problem 27\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002Python\u306a\u3089\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002 from itertools import * import time memo = { } def IsPrime(n): if n < 2: return False elif n in memo: return memo[n] b = all(n % p != 0 for p in takewhile(lambda p: p * p <= n, count(2))) memo[n] = b return b def length(a, b): ret\u2026","blog_title":"inamori\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20130712%2Fp1\" title=\"C#\u3067Project Euler\uff088\uff09 Dictionary - 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","version":"1.0","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/inamori/","blog_url":"https://inamori.hateblo.jp/","title":"C#\u3067Project Euler\uff088\uff09 Dictionary","width":"100%","height":"190","image_url":null,"categories":["C#"],"published":"2013-07-12 00:00:00","provider_name":"Hatena Blog"}