Factoring into Prime Factors - 2#4747

Factoring into Prime Factors - 2

1 segundo
64 megabytes
Fácil (≈1000)

For the given number , provide its prime factorization.

Entrada

The input consists of a single line containing the number (2 \leq N \leq 100000).

Salida

For each prime factor of , output two numbers on a separate line: the prime divisor and its exponent in the factorization. Do not include any divisor with an exponent of . Present the pairs in ascending order based on the divisor. Refer to the examples for clarity.

Ejemplos

Ejemplo 1

Loading
Loading