#P17455. [GESP202609 五级] 哥德巴赫猜想
[GESP202609 五级] 哥德巴赫猜想
Problem Description
As everyone knows, Goldbach's conjecture says that any even number greater than can be written as the sum of two prime numbers. For example:
You surely want to know: for an even number greater than , how many ways are there to write it as the sum of two primes? For example, , , and each have only one way, while has two ways. Please write a program to compute the answer.
In this problem, we consider two representations different if and only if the sets of primes used in the two representations are different. That is, and are the same representation and must not be counted twice.
Input Format
One line containing an even integer greater than .
Output Format
One line containing an integer, representing the number of ways to write as the sum of two primes.
4
1
10
2
Hint
For of the test points, is guaranteed.
For all test points, is guaranteed.
Translated by ChatGPT 5