function to display N primes whose sum equals S
function display ( ) { var length = set . length ; for ( var i = 0 ; i < length ; i ++ ) document . write ( set [ i ] + " " ) ; document . write ( " " ) ; }