Course of Raku / Advanced / More about built-in types / Integers / Exercises
How many digits
Problem
Thanks to arbitrary-precision integers, Raku can compute
2 ** 1000 exactly. The number is far too long to count by
eye, so make the program tell you: print how many decimal digits the
value of 2 ** 1000 has.
Example
The program prints:
302