Number of pairs
Practice
3.8 (10 votes)
Integer factorization
Algorithms
Math
Mathamatics
Factorization
Number theory
Problem
78% Success 1548 Attempts 10 Points 1s Time Limit 256MB Memory 1024 KB Max Code

You are given an integer which is a product of LCM and GCD. Your task is to find all the pairs of $$x$$ and $$y$$ for which their product of LCM and GCD is equal to the given number.

Note: Pair $$x$$ and $$y$$ is different from $$y$$ and $$x$$.

Input format

  • The first line of the input contains a single integer $$T$$ denoting the number of test cases.
  • The first and only line of each test case contains a single Integer.

Output format

For each test case, print a single line containing the Integer.

Constraints

$$1 \le T \le 100$$
$$1 \le N \le 4 \times 10^9$$

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:10
1 votes
Tags:
Very-Easy
Points:10
1 votes
Tags:
Prime FactorizationVery-EasyVery-Easy