#P284. 练46.3 哥德巴赫猜想
练46.3 哥德巴赫猜想
Description
Goldbach's conjecture is one of the three major mathematical problems in modern times. It states that every even number greater than can be expressed as the sum of two prime numbers. For example, , , , .
Please define a function to determine if a number is prime, and use it to verify that all even numbers between and can be decomposed into the sum of two prime numbers, where .
Input Format
One line containing an integer .
Output Format
Output several lines, each containing an equation showing how an even number between and is decomposed into the sum of two prime numbers. If an even number does not satisfy this condition, output "Verification failed!".
Sample
104=2+2
6=3+3
8=3+5
10=3+7
Related
In following homework: