summaryrefslogblamecommitdiffstats
path: root/048.bc
blob: cfa7e51152f59944b0779bc2355b30721a288cdd (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