#P2563. [AHOI2001] 质数和分解
[AHOI2001] 质数和分解
Description
Any natural number greater than can be written as a sum of primes each greater than or equal to and less than or equal to (including the case where the sum consists of only one number), and there may be more than one such prime-sum form. For example, the prime-sum expressions of have four essentially different forms:
。
Two expressions are considered essentially the same if one can be obtained from the other by permuting the addends.
Write a program to compute how many essentially different prime-sum expressions a natural number can have.
Input Format
Each line of the file contains a natural number ().
Output Format
For each natural number , output the number of essentially different prime-sum expressions.
2
200
1
9845164
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号