If i is a factor of K , then there is a subarray of size K / i in B [ ]
if ( K % i == 0 and ( K // i ) <= m ) : NEW_LINE INDENT total = total + subA [ i ] * subB [ K // i ] NEW_LINE DEDENT print ( total ) NEW_LINE