<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
    <anon>数学(整数問題)</anon>
    <anon>素数</anon>
    <anon>バケット</anon>
    <anon>集計処理</anon>
    <anon>エラトステネスの篩</anon>
    <anon>数え上げ問題</anon>
    <anon>データ構造テク：前処理</anon>
    <anon>【問題集】整数変数の式で表された条件を扱う探索</anon>
  </categories>
  <description>エラトステネスの篩の練習問題に良さそう 問題へのリンク 問題概要 以上 以下の素数の組 であって、 を満たすものの個数を求めよ。 制約 考えたこと のときは明らかにダメ。 また、偶数かつ素数である整数は 2 のみであることに注意する。 がともに奇数とすると は偶数となる。よって となるが、 を満たす解は しかない。よって がともに奇数であることはありえない。 以上から、 または であるとしてよい。ここでは として解いて最後に 2 倍することにする。 の場合をあらかじめ特別扱いしておく。 を満たす奇素数 をすべて求める問題へと帰着された。次のように解ける。 あらかじめエラトステネスの篩によって …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2020%2F11%2F02%2F131007&quot; title=&quot;yukicoder No.843 Triple Primes - けんちょんの競プロ精進記録&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1516148889515660</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-02 13:10:07</published>
  <title>yukicoder No.843 Triple Primes</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2020/11/02/131007</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
