#P1304. 哥德巴赫猜想
哥德巴赫猜想
Description
Given an even number , verify whether all even numbers from to satisfy Goldbach's conjecture: every even number greater than can be written as the sum of two primes. If a number has more than one representation, output the one whose first addend is minimal among all representations. For example, for , , then is a wrong answer.
Input Format
The first line contains a positive even integer .
Output Format
Output lines. For the -th line: First output the positive even number , then an equals sign, and then two primes that sum to with the smallest possible first addend, separated by a plus sign.
10
4=2+2
6=3+3
8=3+5
10=3+7
Hint
Constraints: .
Translated by ChatGPT 5
京公网安备 11011102002149号