[ create a new paste ] login | about

Link: http://codepad.org/2WeoUAyI    [ raw code | output | fork ]

Haskell, pasted on May 12:
1
2
3
4
5
6
7
8
-- Calculate 11 ^105

main = printPower 105 where
       printPower = putStr . show . calculatePower

calculatePower 0 = 1
calculatePower n = 11 * calculatePower predn where
                       predn = pred n


Output:
1
22193813979407164354224423199022080924541468040973950575246733562521125229836087036788826138225193142654907051


Create a new paste based on this one


Comments: