Anonymous user
First power of 2 that has leading decimal digits of 12: Difference between revisions
First power of 2 that has leading decimal digits of 12 (view source)
Revision as of 19:09, 21 May 2020
, 4 years ago→{{header|Haskell}}
Line 276:
import Text.Printf (printf)
p :: Int -> Int ->
p l n = calc !! pred n
where
|