Revision: 10319
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 18, 2008 13:48 by theobriscoe
Initial Code
def sumPowerSeries(int n){ BigInteger sum = 0 BigInteger seriesVal = 0 for (int index = 1; index < n+1; index++) { seriesVal = index sum = sum + seriesVal.pow(index) //println " " + index + " " + sum } return sum }
Initial URL
Initial Description
Initial Title
Find the last ten digits of the series, 1^(1) + 2^(2) + 3^(3) + ... + 1000^(1000)
Initial Tags
Initial Language
Groovy