a math problem

查看题解 查看答案
题目描述
Time Limit: 1000 ms
Memory Limit: 256 mb

Goldbach conjecture: any even number greater than 2 can be written as the sum of two prime Numbers.
From this we can get another guess:Any odd number greater than 7 can be written as the sum of three prime Numbers.
So can any number greater than 11 be written as the sum of six prime Numbers?
Output the answer of minimum dictionary order, If the answer exists. Otherwise, output impossible.

输入输出格式
输入描述:
Input an integer n. 11<=n<=1e18.
输出描述:
Output the answer of minimum dictionary order, If the answer exists. Otherwise, output impossible.
输入输出样例
输入样例#:
12
输出样例#:
复制
2 2 2 2 2 2
提示
2 Is a prime number, and 12 = 2+2+2+2+2+2
编辑器外观×
主题
字号 16px
背景
登录后免费刷此题

提交代码后在此处可查看状态