MATLAB: Find the last ten digits of 1^1 + 2^2 + … + 1000^1000

last ten digits of 1^1 + 2^2 + ... + 1000^1000

how to Create a function to find the last ten digits of 1^1 + 2^2 + … + 1000^1000 using M-script
Related Question