Check if a number can be represented as product of two positive perfect cubes | Function to check if the number N can be represented as the product of two perfect cubes or not ; If cube of cube_root is N ; Otherwise , print No ; Driver code
function productOfTwoPerfectCubes ( N ) { var cube_root ; cube_root = Math . round ( Math . cbrt ( N ) ) ; if ( cube_root * cube_root * cube_root == N ) { document . write ( " " ) ; return ; } else { document . write ( " " ) ; return ; } } var N = 216 ; productOfTwoPerfectCubes ( N ) ;