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
< ? php function countNumbers ( $ N ) { return ( int ) ( sqrt ( $ N ) ) - 1 ; } $ N = 36 ; echo countNumbers ( $ N ) ; ? >