SP16825 EC_DIVS - Divisors
Description
Misael is a child that loves maths. This year he learned about operations with decimal numbers, simplifying fractions, maximum and minimum of a set.
But Misael is not an ordinary child. He knows programming and he proposed a challenge: He will give you a list of numbers and you must calculate all common divisors for all numbers on that list. The task is simple, but Misael offers you something even more interesting. The size list is variable, he can add as well as remove numbers. However Misael doesn't like the prime divisors, so you should exclude those numbers from the list.
Input Format
The first line contains the number of test cases, and each case consists of an integer **N** (1
Output Format
For each type operation CON print a line with non-prime common divisors listed in ascending order. If the list is empty, print -1.