If the sum of digits in i is a prime number
if ( isPrime ( sum ) ) : NEW_LINE INDENT arr [ i ] = 1 NEW_LINE DEDENT else : NEW_LINE INDENT arr [ i ] = 0 NEW_LINE DEDENT else : NEW_LINE arr [ i ] = 0 NEW_LINE