GCD Determinant 解题报告
http://www.cn210.com/onlinejudge/problemshow.php?pro_id=98
我们的OJ
Description
We say that a set
$$S = {x1, x2, ..., xn}$$is factor closed if for any xi ∈ S and any divisor d of xi we have d ∈ S. Let’s build a GCD matrix (S) = (sij), wheresij = GCD(xi, xj) - the greatest common divisor of xi and xj. Given the factor closed set S, find the value of the determinant:
Input
The input contains several test cases. Each test case starts with an integer n (0 < n < 1000),…