1772: StrongPrimePower

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:21 解决:2

题目描述

A number which can be represented as pq, where p is a prime number and q is an integer greater than 0, is called a prime power. If q is larger than 1, we call the number a strong prime power. You are given an integer n. If n is a strong prime power, output an int[] containing exactly two elements. The first element is p and the second element is q. If n is not a strong prime power, output an empty int[].

输入

For each line, you are given an integer n . n will contain digits (‘0‘ - ‘9‘) only. n will represent an integer between 2 and 10^18, inclusive. n will have no leading zeros.

输出

Output an int[] containing exactly two elements. The first element is p and the second element is q. If n is not a strong prime power, output an empty int[].

样例输入 复制

27
10
576460752303423488

样例输出 复制

3 3

2 59

来源/分类