Represent the given number as the sum of two composite numbers | Function to find two composite numbers which when added give sum as n ; Only 8 and 10 can be represented as the sum of two composite integers ; If n is even ; If n is odd ; Driver code
function findNums ( n ) { if ( n <= 11 ) { if ( n == 8 ) document . write ( " " ) ; if ( n == 10 ) document . write ( " " ) ; else document . write ( " " ) ; return ; } if ( n % 2 == 0 ) document . write ( " " + ( n - 4 ) ) ; else document . write ( " " + ( n - 9 ) ) ; } var n = 13 ; findNums ( n ) ;