Time limit kbndj

my code is showing time limt exceed for one test case

Hi @mayank10

Just precompute all the factors of the numbers provided to you. Then just print pre[k] for each query.
Pre[i] stores number of numbers which are multiple of i.

Hope it Helps.