return GCD(nums)==1 || C++
Code\n\nclass Solution {\npublic:\n    bool isGoodArray(vector<int>& nums) {\n        int g = 0;\n        for(auto &i: nums){\n            g = __gcd(i,g);\n    
# Code\n```\nclass Solution {\npublic:\n    bool isGoodArray(vector<int>& nums) {\n        int g = 0;\n        for(auto &i: nums){\n            g = __gcd(i,g);\n            if(g==1)return true;\n        }\n        return false;\n    }\n};\n```
['C++']