<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gom68</author_name>
  <author_url>https://blog.hatena.ne.jp/gom68/</author_url>
  <blog_title>gom68の日記</blog_title>
  <blog_url>https://gom.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>もろもろの合間にちょっとした体操。http://projecteuler.net/problem=10 200万までの素数の合計を求める。 単に素数リストを求めて合計すればいいだけ。組み込みクラス使ってもいいけど、自前で実装する。 #!/usr/bin/env ruby class Prime def list(max) # Eratosthenes list = (3..max).step(2).to_a result = [2] while(list.last &gt; result.last ** 2) do result &lt;&lt; list.shift list.reject! {|n| n %…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgom.hatenablog.com%2Fentry%2F20121216%2F1355622892&quot; title=&quot; Project Euler - Problem 10 - gom68の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-12-16 10:54:52</published>
  <title> Project Euler - Problem 10</title>
  <type>rich</type>
  <url>https://gom.hatenablog.com/entry/20121216/1355622892</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
