Enormous digits

Started by
1 comment, last by Illco 18 years, 7 months ago
I've written a program which can find perfect numbers. However, my program cannot find the 8th perfect number, 2305843008139952128, and later ones since there is a limitation of number range. btw, it is written in c++. So i wonder how to calculate numbers with enormous digits such as 10^1000000... and even larger.
Advertisement
You could try using a multi-precision library like GMP.
You can obtain or write routines to represent and manipulate such numbers. It will of course be much slower than built-in arithmic.

Greetz,

Illco

PS: for an example check out arbitrary-sized numbers in the LEDA library

This topic is closed to new replies.

Advertisement