eolymp
bolt
Try our new interface for solving problems
Problems

Divisors

Divisors

Find the smallest possible integer $x$, that has exactly $n$ divisors. \InputFile One positive integer $n~(1 \le n \le 16)$. \OutputFile Print the smallest possible integer $x$ that has exactly $n$ divisors.
Time limit 1 second
Memory limit 128 MiB
Input example #1
2
Output example #1
2
Input example #2
4
Output example #2
6
Input example #3
5
Output example #3
16
Source The 2012 All-Ukrainian Collegiate Programming Contest Round I Training Contest 19 April 2012