{"categories":["Ruby","ProjectEuler"],"author_name":"gomi-box","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgomi-box.hatenablog.com%2Fentry%2F20080822%2FPE_P7\" title=\"Problem 7 - \u6bdb\u306e\u306f\u3048\u305f\u3088\u3046\u306a\u3082\u306e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"height":"190","blog_url":"https://gomi-box.hatenablog.com/","blog_title":"\u6bdb\u306e\u306f\u3048\u305f\u3088\u3046\u306a\u3082\u306e","width":"100%","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/gomi-box/","published":"2008-08-22 00:00:01","description":"\u7d20\u6570\u3092\u5c0f\u3055\u3044\u65b9\u304b\u30896\u3064\u4e26\u3079\u308b\u3068 2, 3, 5, 7, 11, 13 \u3067\u3042\u308a\u30016\u756a\u76ee\u306e\u7d20\u6570\u306f 13 \u3067\u3042\u308b\u3002 10001 \u756a\u76ee\u306e\u7d20\u6570\u3092\u6c42\u3081\u3088\u3002 Problem 7 - PukiWiki $p_list =[] limit =10001 def prime_number?(num) return false if num < 2 k = true (3..num).each{|i| $p_list.each{|j| k = false and break if i%j == 0 && num%i==0} break if !k } return k end target = 1 while $p\u2026","url":"https://gomi-box.hatenablog.com/entry/20080822/PE_P7","type":"rich","title":"Problem 7","provider_url":"https://hatena.blog","version":"1.0"}