Smallest N digit number which is a perfect fourth power | Python3 implementation of the approach ; Function to return the smallest n - digit number which is a perfect fourth power ; Driver code
from math import * NEW_LINE def cal ( n ) : NEW_LINE INDENT res = pow ( ceil ( ( pow ( pow ( 10 , ( n - 1 ) ) , 1 / 4 ) ) ) , 4 ) NEW_LINE return int ( res ) NEW_LINE DEDENT n = 1 NEW_LINE print ( cal ( n ) ) NEW_LINE