<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xef</author_name>
  <author_url>https://blog.hatena.ne.jp/xef/</author_url>
  <blog_title>Soleil cou coupe</blog_title>
  <blog_url>https://xef.hatenadiary.org/</blog_url>
  <categories>
    <anon>CoffeeScript</anon>
  </categories>
  <description>問題文 Problem 10 10以下の素数の和は2 + 3 + 5 + 7 = 17である. 200万以下の全ての素数の和を計算しなさい. Solution ダーティなコード。「上手い記述を検討します」とはなんだったのか。 時間もかかるしよくない… is_prime ?= (n) -&gt; [2..Math.floor(Math.sqrt(n))].every? ( (x) -&gt; n % x != 0 ) primes = (n) -&gt; [2,3].concat (x for x in [5..n] when is_prime? x) Array::sum = -&gt; @.reduce (a, b…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxef.hatenadiary.org%2Fentry%2F20120331%2Fp2&quot; title=&quot;CoffeeScriptでProject Euler #10 - Soleil cou coupe&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-03-31 00:00:01</published>
  <title>CoffeeScriptでProject Euler #10</title>
  <type>rich</type>
  <url>https://xef.hatenadiary.org/entry/20120331/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
