問題一覧 > 通常問題

No.1058 Nice Numbers

レベル : / AI推定難易度 : 500 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 353
作問者 : Enjapma_kyopro / テスター : okuraofvegetabl
お気に入りにしたユーザー ProblemId : 4256 / 自分の提出
問題文最終更新日: 2020-05-30 00:13:46
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 249 (順位表) の他の問題:

Problem Statement

Let us call a positive integer a "nice number" if it satisfies all of the following conditions.

  • It is not a prime number.
  • It has no divisor between $2$ and $10^5$, inclusive.

Find the $N$-th smallest "nice number".

Input

$N$

  • $N$ is an integer between $1$ and $10$, inclusive.

Output

Output the $N$-th smallest "nice number".
Print a newline at the end.

Sample

Sample 1
Input
1
Output
1

The smallest "nice number" is $1$.
Note that $1$ is not a prime number.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。