#P1832. A+B Problem(再升级)
A+B Problem(再升级)
Description
- Obviously .
- See P1001, don't thank me.
- Goldbach's conjecture seems to be everywhere.
The above is purely a personal rant.
Given a positive integer , find the total number of ways to express it as a sum of prime numbers. The order of addends does not matter.
Input Format
One line containing a positive integer .
Output Format
One line containing an integer representing the total number of ways.
7
3
20
26
Hint
Sample Explanation
There are the following three ways:
- .
- .
- .
Constraints
- For of the testdata, .
- For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号