Return number of primes in range from index qs ( query start ) to qe ( query end ) . It mainly uses queryPrimesUtil ( )
function queryPrimes ( st , n , qs , qe ) { let primesInRange = queryPrimesUtil ( st , 0 , n - 1 , qs , qe , 0 ) ; document . write ( " " + qs + " " + qe + " " + primesInRange + " " ) ; }