Prime Factors#3261

Prime Factors

1 Sekunde
64 Megabyte
Leicht

Given a natural number . Decompose it into prime factors.

Eingabe

The first line of input contains the number (1 \le T \le 10000) of natural numbers to be decomposed into prime factors. Each of the next lines contains a single integer (2 \le N \le 10\,000\,000).

Ausgabe

For each number , output in a single line separated by spaces its decomposition into prime factors in the format shown in the examples.

Do not put extra spaces, otherwise you will get a "Wrong Answer". For example, if is , you need to output "2 * 2" (no space after the second two).

Beispiele

Beispiel 1

Loading
Loading