arr [ i ] is already a semi - prime if n - arr [ i ] is also a semi - prime then we a number can be expressed as sum of two semi - primes
if ( sprime [ n - arr [ i ] ] ) { return true ; } i ++ ; } return false ; }