<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>blue_jam</author_name>
  <author_url>https://blog.hatena.ne.jp/blue_jam/</author_url>
  <blog_title>blue_jamの日記</blog_title>
  <blog_url>https://blue-jam.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>概要 2つの4桁の素数A, Bが与えられる．Aに対して，「どれか一つの桁を書き換えて別の素数にする（ただし，最上位は0に書き換えてはいけない）」という操作を最小何回行えばBにすることができるか． 解法 素数の表を作り，幅優先探索． bool isntPrime[10000], visited[10000]; int main(){ memset(isntPrime, 0, sizeof(isntPrime)); for(int i = 2; i &lt;= 9999; ++i){ if(isntPrime[i]) continue; for(int j = i + i; j &lt;= 9999; j +…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblue-jam.hatenablog.com%2Fentry%2F2014%2F08%2F12%2F154355&quot; title=&quot;POJ 3126: Prime Path - blue_jamの日記&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>2014-08-12 15:43:55</published>
  <title>POJ 3126: Prime Path</title>
  <type>rich</type>
  <url>https://blue-jam.hatenablog.com/entry/2014/08/12/154355</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
