# Find the last ten digits of the series, 1^(1) + 2^(2) + 3^(3) + ... + 1000^(1000) def main(): solution = 0 x = 1 chunk = 0 while x <= 1000: bite = x ** x x +=1 chunk += bite print chunk if __name__ == '__main__': main()