Count number less than N which are product of perfect squares | Function to count number less than N which are product of any two perfect squares ; Driver Code
function countNumbers ( N ) { return parseInt ( Math . sqrt ( N ) , 10 ) - 1 ; } let N = 36 ; document . write ( countNumbers ( N ) ) ;