"Steinar H. Gunderson" <[EMAIL PROTECTED]> said this in message
<[EMAIL PROTECTED]>:

> > er... why not 
> > Digits = Length((string)Number) ?
> > 
> > or is this too fiendishly complicated ?

> 1. It requires a language with native support for bignums (or rewriting the
>    expression into using a bignum library).
> 2. It is dead slow, having to actually calculate the entire number (in our
>    case, often tens of millions of digits) just to get its length.

Ok, fair point well made, but the original questioner asked to calculate
the number of digits in a number "randomly entered from the keyboard",
which seemed like a question looking for a facetious answer.  So I gave
it ...

Jason
_______________________________________________
Prime mailing list
[email protected]
http://hogranch.com/mailman/listinfo/prime

Reply via email to