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

SeungminLee | 46 |

an0nym0u5 | 31 |

Vittorino92 | 31 |

savundharyass | 25 |

SathishBoobalan | 25 |

Ibrahim Nash | 357 |

blueberry | 315 |

xiaowang | 306 |

sushanto | 244 |

rutvikpatel29 | 227 |

akhayrutdinov | 4863 |

Quandray | 4236 |

Ibrahim Nash | 4021 |

sanjay05 | 3668 |

GB11 | 2853 |