I am trying to compare numbers that are so large that even BigIntegers cannot deal with them. My solution is to convert the numbers to Strings and use String comparison on them.
Will this work? I am not really sure how to implement something like this. I am just attempting to unit test an algorithm to produce the factorial of 1000 for a project Euler program that I am sucked into.
BigInteger, the latter can handle larger numbers. Unless you have a really large machine (>>8GB RAM) it is only limited by available memory.