From: Brian Candler Date: 2007-05-05T05:09:43+09:00 Subject: Re: Help with bigbnum On Sat, May 05, 2007 at 04:34:01AM +0900, Victor Reyes wrote: > The largest perfect number found to this date, if I believe website > http://amicable.homepage.dk/perfect.htm is: (2**32582656) * (2**32582657 - > 1). Then that's the number, represented in a compact form. > I know that Brute force is not the way, but I don't have a nice algorithm to > use. But what are you trying to achieve? Simply to display this number in its direct decimal form? If my rusty maths is correct, that number is a little under 2**(32582656 + 32582657) which is roughly 10 ** ( (32582656 + 32582657) * log(2)/log(10) ) ~= 10 ** 19616713 So there are nearly 20 million digits in the answer...