public class WanHa{ public static void main(String[] args){ System.out.println(isHuZhi(160,852797)); } public static boolean isHuZhi(int n,int m){ while(m!=0){ int t; t=m; m=n%m; n=t; } return n==1; }}