• + 0 comments

    JS

    let amount = 0;
        
    let number = Math.ceil(Math.sqrt(a));
        
    while(number*number <= b) {
    	amount += 1;
    	number += 1;
    }
        
    return amount;