{"trustable":true,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e萨莎喜欢研究不同的数学对象,例如魔方。但是萨莎知道魔方已经被数百人研究过了,所以他觉得再研究下去没有意义。相反,他发明了自己的一种方块 —— 素数方块。\u003c/p\u003e\u003cp\u003e一个大小为$$$n \\times n$$$的方块被称为素数方块,如果同时满足以下三个条件:\u003c/p\u003e\u003cul\u003e \u003cli\u003e 方块上的所有数字都是不超过$$$10^5$$$的非负整数;\u003c/li\u003e\u003cli\u003e 方块中没有素数;\u003c/li\u003e\u003cli\u003e 每行和每列中整数的和都是素数。\u003c/li\u003e\u003c/ul\u003e\u003cp\u003e萨莎有一个整数$$$n$$$。他请你找到任意大小为$$$n \\times n$$$的素数方块。萨莎绝对确定这样的方块是存在的,所以请帮帮他!\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数$$$t$$$($$$1 \\le t \\le 10$$$) —— 测试用例的数量。\u003c/p\u003e\u003cp\u003e接下来的$$$t$$$行中,每行包含一个整数$$$n$$$($$$2 \\le n \\le 100$$$) —— 方块的所需大小。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试用例,打印$$$n$$$行,每行包含$$$n$$$个整数 —— 你构建的素数方块。如果有多个答案,随意输出一个。\u003c/p\u003e"}},{"title":"示例 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\n4\n2\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e4 6 8 1\n4 9 9 9\n4 10 10 65\n1 4 4 4\n1 1\n1 1\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}