{"ScriptPreparationCode":"function gcd(a, b){\r\n var divisor = 2, \r\n greatestDivisor = 1;\r\n\r\n if (a \u003C 2 || b \u003C 2)\r\n return 1;\r\n\r\n while(a \u003E= divisor \u0026\u0026 b \u003E= divisor){\r\n if(a % divisor == 0 \u0026\u0026 b % divisor == 0){\r\n greatestDivisor = divisor; \r\n }\r\n divisor\u002B\u002B;\r\n }\r\n return greatestDivisor;\r\n}\r\n\r\nfunction gcd1(a, b){\r\n var divisor = 2, \r\n greatestDivisor = 1;\r\n\r\n if (a \u003C 2 || b \u003C 2) {\r\n return greatestDivisor\r\n } else {\r\n for (divisor; a \u003E= divisor \u0026\u0026 b \u003E= divisor; divisor\u002B\u002B) {\r\n if(a % divisor === 0 \u0026\u0026 b % divisor === 0){\r\n greatestDivisor = divisor; \r\n }\r\n }\r\n }\r\n \r\n return greatestDivisor;\r\n}","TestCases":[{"Name":"Orig","Code":"gcd(1012, 10580);","IsDeferred":false},{"Name":"Grem","Code":"gcd1(1012, 10580);","IsDeferred":false}]}