{"provider_name":"Hatena Blog","height":"190","url":"https://mikeda.hatenablog.com/entry/20090131/1233419337","description":"http://code.nanigac.com/source/view/709 def primeList num return [] if num < 2 arr = (2..num).to_a primes = [] begin primes << (p = arr.shift) arr.reject!{|i| i%p == 0} end while p**2 < arr.last primes + arr end puts primeList(100) \u307b\u3093\u3068\u306b\u3053\u308c\u3067\u3060\u3044\u3058\u3087\u3046\u3076\u306a\u306e\u304b\u30fb\u30fb\u30fb","author_name":"mikeda","blog_url":"https://mikeda.hatenablog.com/","published":"2009-01-31 01:28:57","type":"rich","categories":["ruby"],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmikeda.hatenablog.com%2Fentry%2F20090131%2F1233419337\" title=\"n\u4ee5\u4e0b\u306e\u7d20\u6570\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u308b - mikeda\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/mikeda/","width":"100%","image_url":null,"blog_title":"mikeda\u306e\u65e5\u8a18","title":"n\u4ee5\u4e0b\u306e\u7d20\u6570\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u308b","version":"1.0"}