<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>数学</anon>
  </categories>
  <description>こんな感じ。 eratosthenes.swift func eratosthenes(_ n: Int) -&gt; [Int] { var ar = Array(0...n) for i in 2...Int(sqrt(Double(n))) { if ar[i] == 0 {continue} for j in 2...(n / i) {ar[i * j] = 0} } return ar.filter {$0 != 0} } print(eratosthenes(1000)) 1000万までの素数を求めてみました（出力はしていません）。Swift 4.0, Linux Mint 18.2。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F10%2F05%2F145618&quot; title=&quot;Swift でエラトステネスの篩 - Camera Obscura&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>2017-10-05 14:56:18</published>
  <title>Swift でエラトステネスの篩</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2017/10/05/145618</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
