
#!/bin/python
#programto find last ten digits of the series  1^1+2^2+3^3.....1000^1000
result = 0

for i in range (1,1001):
        result = result + pow(i,i) #sum find for loop

result=str(result) #to string
l=len(result)  #length find
print result[l-10:l] #print last 10 digits




04d6776447e61dae421d0510e4196b54cb60ace3

#!/bin/python
#programto find last ten digits of the series  1^1+2^2+3^3.....1000^1000
result = 0

for i in range (1,1001):
        result = result + pow(i,i) #sum find for loop

result=str(result) #to string
l=len(result)  #length find
print result[l-10:l] #print last 10 digits



