版本比较
+1 −1增加 1 行删除 1 行
31 行未改动3233343536363738394014 行未改动31 行未改动 int res=x; for(int i=2;i*i<=x;i++){ if(x%i==0){ res=res/i*(i-1); while(x%i==0) x/=i; while(x%i==0) x/=i; } } if(x>1) res=res/x*(x-1); return res;14 行未改动