C. 练46.3 哥德巴赫猜想

    Type: Default 1000ms 128MiB

练46.3 哥德巴赫猜想

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

Goldbach's conjecture is one of the three major mathematical problems in modern times. It states that every even number greater than 22 can be expressed as the sum of two prime numbers. For example, 4=2+24=2+2, 6=3+36=3+3, 8=3+58=3+5, 10=3+710=3+7.
Please define a function to determine if a number is prime, and use it to verify that all even numbers between 44 and nn can be decomposed into the sum of two prime numbers, where n4n≥4.

Input Format

One line containing an integer nn.

Output Format

Output several lines, each containing an equation showing how an even number between 44 and nn is decomposed into the sum of two prime numbers. If an even number does not satisfy this condition, output "Verification failed!".

Sample

10
4=2+2
6=3+3
8=3+5
10=3+7

20251025B班作业(4)

Not Claimed
Status
Done
Problem
4
Open Since
2025-10-25 0:00
Deadline
2025-11-2 23:59
Extension
24 hour(s)