Increment the frequency of all prime factors of arr [ i ]
for factors in primeFactors : NEW_LINE INDENT frequency [ factors ] += 1 NEW_LINE frequency [ factors ] %= 2 NEW_LINE DEDENT N = len ( S ) NEW_LINE