text: Function to return the sum of elements in an array having composite frequency
code: def sumOfElements ( arr , n ) : NEW_LINE INDENT composite = [ False ] * N NEW_LINE SieveOfEratosthenes ( composite ) NEW_LINE DEDENT