summaryrefslogblamecommitdiffstats
path: root/048.bc
blob: 34a9e6020abd8054fb111bc1e066979713894746 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                             
    
#!/usr/bin/bc

scale = 0

num = 0
for (n = 1; n <= 1000; n++) {
    num += n^n
    num %= 10^10
}
num
halt