Preparando MOJI

Prime factorization

2000ms 65536K

Description:

You are given an integer n. Output its prime factorization.

If n = a1b1a2b2 ... akbk, where ak are prime numbers, the output of your program should look as follows: a1 a1 ... a1 a2 a2 ... a2 ... ak ak ... ak, where factors are ordered in non-decreasing order, and each factor ai is printed bi times.

Input:

The only line of input contains an integer n (2 ≤ n ≤ 250).

Output:

Output the prime factorization of n, as described above.

Sample Input:

245

Sample Output:

5 7 7 

Sample Input:

13

Sample Output:

13 

Informação

Codeforces

Provedor Codeforces

Código CF130F

Tags

*special

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:33:41

Relacionados

Nada ainda