No.2750 Number of Prime Factors
問題文最終更新日: 2023-03-14 23:02:46
English (AI translation)
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もしくは右上の雲マークをクリックしてアカウントを作成してください。
MZKi