Divisors number divisibility
For a given positive integer N find the number of all positive integers X such that N divides X and the number of all positive divisors of X (including 1 and X) is equal to N. If there exist infinitely many such numbers print -1. Input The first line contains a single positive integer T , the number of test cases. T test cases follow. The only line of each test case contains a positive integer N
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start