{"author_url":"https://blog.hatena.ne.jp/inamori/","url":"https://inamori.hateblo.jp/entry/20120712/p1","title":"Windows PowerShell\u3067Project Euler\uff0813\uff09 \u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u3075\u308b\u3044","type":"rich","published":"2012-07-12 00:00:00","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120712%2Fp1\" title=\"Windows PowerShell\u3067Project Euler\uff0813\uff09 \u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u3075\u308b\u3044 - 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>","provider_name":"Hatena Blog","blog_title":"inamori\u2019s diary","categories":["PowerShell"],"width":"100%","image_url":null,"provider_url":"https://hatena.blog","height":"190","description":"Problem 7\u3053\u306e\u554f\u984c\u306f\u3075\u3064\u3046\u306b\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u3075\u308b\u3044\u3067\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u3069\u308c\u3060\u3051\u306e\u5927\u304d\u3055\u306e\u914d\u5217\u3092\u7528\u610f\u3059\u308c\u3070\u3044\u3044\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\uff08\u7d20\u6570\u5b9a\u7406\u3092\u4f7f\u3048\u3070\u6982\u7b97\u3067\u304d\u307e\u3059\u304c\uff09\u3001\u4e0a\u9650\u304c\u4e0d\u660e\u306a\u3068\u304d\u306e\u554f\u984c\u89e3\u6c7a\u6cd5\u306b\u66f8\u3044\u305f\u3088\u3046\u306b\u500d\u3005\u306b\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u3002 filter map($f) { & $f } function make_primes($N) { $a = (0..$N | map { $true }) foreach($p in (2..$N | where { $a[$_] })) { for($m = $p * $p; $m -le $N; $m += $p) { $a[$m] = $false } \u2026","blog_url":"https://inamori.hateblo.jp/","author_name":"inamori"}