Project Euler 48 - Self Powers
Project Euler 48 - Self Powers
Official link: https://projecteuler.net/problem=48
Thought Process
Thought Process
Another trivial problem in Python, simply loop through x, from 1 to 1000 and add pow(x,x,10**10) to a running total, then just return the total mod 10^10
Interactive Code
Interactive Code
Input an integer (yourinput)
Code will output the last 10 digits of the sum of 1^1 + ... + yourinput^yourinput