<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akihiro4chawon</author_name>
  <author_url>https://blog.hatena.ne.jp/akihiro4chawon/</author_url>
  <blog_title>akihiro4chawonの日記</blog_title>
  <blog_url>https://akihiro4chawon.hatenadiary.org/</blog_url>
  <categories>
    <anon>Project Euler</anon>
    <anon>scala</anon>
  </categories>
  <description>プログラミング問題サイトProject Eulerの第216問に、こんな問題が出た。1 自然数 n について、2*n2-1 が素数となるものの個数を求めよ普通に素数判定すると計算時間がかかる（一時間くらい？）ので工夫したアルゴリズムで解け、というのが出題意図と思う。たぶん。でもアルゴリズム考えるの面倒なんで、出題意図を無視して、力押し。我々には、scala.collection.parallel という強い味方がある。 object Prob216Par { def isPrime(n: Long) = BigInt(n).isProbablePrime(32) def solve { val…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakihiro4chawon.hatenadiary.org%2Fentry%2F20110323%2F1300893024&quot; title=&quot; scala 2.9 collection.parallel を実戦投入です！！ - akihiro4chawonの日記&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>2011-03-23 00:10:24</published>
  <title> scala 2.9 collection.parallel を実戦投入です！！</title>
  <type>rich</type>
  <url>https://akihiro4chawon.hatenadiary.org/entry/20110323/1300893024</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
