Given three integers a, b, n .Your task is to print number of numbers between a and b including them also which have n-divisors. A number is called n-divisor if it has total n divisors including 1 and itself.

**Example:**

Input : a = 1, b = 7, n = 2

Output : 4

There are four numbers with 2 divisors in

range [1, 7]. The numbers are 2, 3, 5, and 7.

**Input:**

First line consists of T test cases. The only line of every test case consists of a, b, and n.

**Output:**

Single line output, print the count of numbers between a and b which have n- divisors.

**Constraints:**

1<= T <=100

1<= a, b <=100000

1<= n <=16

**Example:
Input:**

1

1 7 2

4

Author: saksham seth

Vishal Arora 1 | 576 |

VikaSh 2 | 192 |

TYSSSantosh | 192 |

KohliAbhijeet | 188 |

onevsall | 174 |

Aditya Singh 17 | 946 |

stupid_af | 835 |

Dhaya_Mohan | 631 |

TYSSSantosh | 607 |

Whatever_As_If | 599 |

akhayrutdinov | 4717 |

Quandray | 3742 |

sanjay05 | 3668 |

Ibrahim Nash | 3664 |

surbhi_7 | 2776 |