logo AlgoBeat OnlineJudge
登录 注册

#210445. [ICPC 2013 WF] Factors

内存限制:512 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

The fundamental theorem of arithmetic states that every integer greater than can be uniquely represented as a product of one or more primes. While unique, several arrangements of the prime factors may be possible. For example:

  • ;
  • ;

Let be the number of different arrangements of the prime factors of . So and .

Given a positive number , there always exists at least one number such that . We want to know the smallest such .

输入格式

The input consists of at most test cases, each on a separate line. Each test case is a positive integer .

输出格式

For each test case, display its number and the smallest number such that . The numbers in the input are chosen such that .

样例

样例输入 1

1
2
3
105

样例输出 1

1 2
2 6
3 12
105 720