Nova Prime and Xandarian Factors

5

1 votes
Prime Factorization, Easy, Number Theory
Problem

After beating Ronan the Accuser of the Kree Empire there were days of peace in Xandar. But a bigger attack was about to come to the Xandar. Thanos was coming for the Xandar and the Orb and Nova prime was worried about it. She knew that only Xandarian factors can save the Xandar so she gave this task to The Worldmind of Xandar. 

You are given an integer N. Your task is to find out the number of Xandarian factors of N.

For a number f to be the Xandarian Factor of N it should follow these 2 conditions:

  1. The number N is divisible by f
  2. f has only 3 factors.

 

Input:

  • The first line contains an integer T denoting the no. of test cases.
  • Following T  lines contain a positive integer N

Output:

  • For each test case print a number denoting the no. of Xandarian factors of N

Constraints:

  • 1T1000000
  • 1N1000000
Time Limit: 2
Memory Limit: 256
Source Limit:
Editor Image

?