{"blog_url":"https://inamori.hateblo.jp/","url":"https://inamori.hateblo.jp/entry/20110717/p1","image_url":null,"author_url":"https://blog.hatena.ne.jp/inamori/","type":"rich","provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","description":"Problem 29\u3053\u306e\u554f\u984c\u306f100\u307e\u3067\u3068\u7bc4\u56f2\u304c\u975e\u5e38\u306b\u72ed\u3044\u306e\u3067\u6b21\u306e\u3088\u3046\u306a\u4e71\u66b4\u306a\u30b3\u30fc\u30c9\u3067\u3082\u77ac\u6642\u306b\u7b54\u3048\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001 def pows(n :Int) = Iterator.iterate(BigInt(n * n))(_ * n).take(N - 1) val N = 100 println (Iterator.range(2, N + 1).flatMap(pows).toSet.size) \u3082\u3063\u3068\u5927\u304d\u306aN\u306b\u5bfe\u3057\u3066\u89e3\u3053\u3046\u3068\u3059\u308b\u3068\u697d\u3057\u304f\u306a\u3063\u3066\u304d\u307e\u3059\u3002\u4ee5\u524d\u306b\u3082\u8003\u5bdf\u3057\u307e\u3057\u305f\u3002Project Euler 29\uff081\uff09 - \u6843\u306e\u5929\u7136\u6c34 Project Euler 29\uff082\uff09 - \u6843\u306e\u5929\u7136\u6c34 Pro\u2026","width":"100%","author_name":"inamori","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110717%2Fp1\" title=\"Scala\u3067Project Euler\uff0848\uff09 - 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>","title":"Scala\u3067Project Euler\uff0848\uff09","height":"190","published":"2011-07-17 00:00:00","blog_title":"inamori\u2019s diary","categories":["Scala"]}