問題一覧 > 通常問題

No.2750 Number of Prime Factors

レベル : / AI推定難易度 : 450 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 122
作問者 : MZKi / テスター : 👑 p-adic
お気に入りにしたユーザー ProblemId : 9340 / 自分の提出
問題文最終更新日: 2023-03-14 23:02: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 429 (順位表) の他の問題:

Problem Statement

You are given a positive integer $N$. Among the integers between $2$ and $N$, inclusive, find the maximum number of prime factors.

Input

$N$

  • $2 \le N \le 10^{18}$
  • All inputs are integers.

Output

Output the maximum number of prime factors, followed by a newline.

Sample

Sample 1
Input
12
Output
2

$6 = 2 \times 3, 10 = 2 \times 5, 12 = 2^2 \times 3$, so these have $2$ prime factors, while every other integer between $2$ and $12$, inclusive, has $1$ prime factor.

Sample 2
Input
1000000000000000000
Output
15

Note that the input may not fit in a 32-bit integer type.

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