my code is showing time limt exceed for one test case
Time limit kbndj
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.