Function to count numbers in the range [ l , r ] such that all of the digits of the number and it 's product with q are unequal
function countInRange ( $ l , $ r , $ q ) { $ count = 0 ; for ( $ i = $ l ; $ i <= $ r ; $ i ++ ) {