If array element is composite and divisible by k
if ( isComposite ( a [ i ] ) and a [ i ] % k == 0 ) : NEW_LINE INDENT compositeset . append ( a [ i ] ) NEW_LINE DEDENT gcd = compositeset [ 0 ] NEW_LINE