{"description":"Project Euler\u306eProblem 50(\u65e5\u672c\u8a9e)\u3067\u3059\u3002 \u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u4f8b\u3067\u8003\u3048\u308b\u3068\u3001 prime_list = [2, 3, 5, 7, 11, 13, 17, 19] i = 0 # \u914d\u5217\u306e\u5de6\u7aef\u3092\u521d\u671f\u5024 j = 7 # \u914d\u5217\u306e\u53f3\u7aef\u3092\u521d\u671f\u5024j\u3092\u6e1b\u3089\u3057\u3066\u3044\u304d\uff0c\u521d\u3081\u3066sum(prime_list[i]\u301cprime_list[j]\u307e\u3067\u306e\u548c)\u304c\u7d20\u6570\u306b\u306a\u3063\u305f\u3068\u304d\u304c\uff0ci\u304b\u3089\u59cb\u307e\u308b\u90e8\u5206\u548c\u306e\u4e2d\u3067\u6700\u5927\u306b\u306a\u308a\u307e\u3059\u3002 \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u306a\u3093\u3068\u306a\u304fRuby\u7684\u306a\u66f8\u304d\u65b9\u3067\u306f\u306a\u3044\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002 050.rb","published":"2012-04-12 00:00:00","url":"https://maehrm.hatenablog.com/entry/20120412/p1","type":"rich","provider_url":"https://hatena.blog","blog_url":"https://maehrm.hatenablog.com/","version":"1.0","author_name":"rahaema","author_url":"https://blog.hatena.ne.jp/rahaema/","blog_title":"Mae\u5411\u304d\u306a\u30d6\u30ed\u30b0","categories":["Ruby","Euler"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaehrm.hatenablog.com%2Fentry%2F20120412%2Fp1\" title=\"Problem 50 - Mae\u5411\u304d\u306a\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","height":"190","title":"Problem 50","image_url":null,"provider_name":"Hatena Blog"}