<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Room-B</author_name>
  <author_url>https://blog.hatena.ne.jp/Room-B/</author_url>
  <blog_title>minofoto and miscellaneous notes</blog_title>
  <blog_url>https://minofoto.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>つづき素数計算するプログラムを awk でも書いてみた。普通に書くと BEGIN{} の中に全部書くことになりそうだけど、それだと awk らしくないので、 function is_prime(n) { j = 2 if (n &lt; 2) return false while (j*j &lt;= n) { if (n % j == 0) return false else j++ } return true } BEGIN{ c = 0; } { if (is_prime($0)) { prime[c++] = $0 } } として以下のように実行してみた。１段目の awk は整数を生成するだけ。２…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminofoto.hatenadiary.jp%2Fentry%2F2022%2F09%2F13%2F211020&quot; title=&quot;Python, Ruby, awk - minofoto and miscellaneous notes&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>2022-09-13 21:10:20</published>
  <title>Python, Ruby, awk</title>
  <type>rich</type>
  <url>https://minofoto.hatenadiary.jp/entry/2022/09/13/211020</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
