Maximize GCD of all possible pairs from 1 to N | Function to obtain the maximum gcd of all pairs from 1 to n ; Print the answer ; Driver code ; Function call
function find ( n ) { document . write ( parseInt ( n / 2 , 10 ) + " " ) ; } let n = 5 ; find ( n ) ;