<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuoishimoto</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuoishimoto/</author_url>
  <blog_title>atsuoishimoto's diary</blog_title>
  <blog_url>https://atsuoishimoto.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Cython</anon>
  </categories>
  <description>演習1 - 素数判定 (A) 以下のPythonスクリプトを作成し、 primes(1000) の実行に必要な処理時間を測定せよ。 def primes(kmax): p = [0] * kmax result = [] k = 0 n = 2 while k &lt; kmax: i = 0 while i &lt; k and n % p[i] &lt;&gt; 0: i = i + 1 if i == k: p[k] = n k = k + 1 result.append(n) n = n + 1 return result (B) (A)で作成したスクリプトを primes1.pyxという名前で保存し、Cyt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F20101113%2F1289746045&quot; title=&quot;Cython 演習問題 - atsuoishimoto&amp;#39;s diary&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>2010-11-13 23:47:25</published>
  <title>Cython 演習問題</title>
  <type>rich</type>
  <url>https://atsuoishimoto.hatenablog.com/entry/20101113/1289746045</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
