A perfect power is a number of the form \$a^b\$, where \$a>0\$ and \$b>1\$.
For example, \$125\$ is a perfect power because it can be expressed as \$5^3\$.
Goal
Your task is to write a program/function that finds the \$n\$-th perfect power, given a positive integer \$n\$.
Specs
- The first perfect power is \$1\$ (which is \$1^2\$).
- Input/output in any reasonable format.
- Built-ins are allowed.
Further information
Scoring
This is code-golf. Shortest solution in bytes wins.
Testcases
input output
1 1
2 4
3 8
4 9
5 16
6 25
7 27
8 32
9 36
10 49