Home > Back-end > A freshman urgent help, help me see the "goldbach conjecture" C
A freshman urgent help, help me see the "goldbach conjecture" C
Time:02-06
7-14 goldbach conjecture (10) Goldbach conjecture are familiar, guess the statement for the euler's version of the common today, that any even number larger than 2 can be written as the sum of two prime Numbers, also known as the "strong goldbach conjecture" or "goldbach conjecture" about even, due to an even number may have multiple sets of different prime Numbers, so request output two primes the most close to each other.
Input format: There are more lines in the input, each line has a accidentally integer n (5 & lt; N =10000) The output format: For each number, the output of two primes the most close to each other, and is equal to the even number (primes smaller before the large prime Numbers).
Input the sample: Given a set of input here, for example:
20 30 40 The output sample: Here is given the corresponding output, for example:
July 13 13 17 17 of 23
CodePudding user response:
The even number divided by 2, then it is good to look for prime Numbers from the left and right sides