{"ScriptPreparationCode":"var n = 9998","TestCases":[{"Name":"sort","Code":"const repeat = Math.sqrt(n);\r\nconst result = [[], []];\r\n \r\nfor (let i = 1; i \u003C= repeat; i\u002B\u002B) { \r\n if(n % i === 0) {\r\n result.push(i);\r\n if (i !== repeat) result.push(n / i);\r\n }\r\n}\r\n \r\nresult.sort((a, b) =\u003E a - b)","IsDeferred":false},{"Name":"reverse","Code":"const repeat = Math.sqrt(n);\r\nconst result = [[], []];\r\n \r\nfor (let i = 1; i \u003C repeat; i\u002B\u002B) { \r\n if(n % i === 0) {\r\n result[0].push(i);\r\n result[1].push(n / i);\r\n }\r\n}\r\n\r\nif (Number.isInteger(repeat)) result[0].push(repeat)\r\n \r\nresult[1].reverse();\r\n\r\nresult.flat()","IsDeferred":false}]}