Preparando MOJI

Number With The Given Amount Of Divisors

2000ms 262144K

Description:

Given the number n, find the smallest positive integer which has exactly n divisors. It is guaranteed that for the given n the answer will not exceed 1018.

Input:

The first line of the input contains integer n (1 ≤ n ≤ 1000).

Output:

Output the smallest positive integer with exactly n divisors.

Sample Input:

4

Sample Output:

6

Sample Input:

6

Sample Output:

12

Informação

Codeforces

Provedor Codeforces

Código CF27E

Tags

brute forcedpnumber theory

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:27:29

Relacionados

Nada ainda