Created
May 12, 2018 13:47
-
-
Save showyou/592aaf473cd475419c94479e1c52b3ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = int(input()) | |
m = 1 | |
for i in range(1, x): | |
for j in range(2, x): | |
k = pow(i, j) | |
if k <= x: | |
m = max(k, m) | |
else: | |
break | |
print(m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment