• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Java - custom number (system?)

mundane

Diamond Member
I was working on calculating prime pairs, but I have reached a cap. Using integer, and even with long, Java won't reach the length that I want (infinity!)

I do realize that this is very CPU intensive, but that's beside the point (I can just have the prog run on the CS lab machines for days in the background). What I'm asking, is there a Java class that will support numbers larger than that, to theoretically infinite size? Or do I have to define my own class, linking together series of digits and dividing/moding them in sequence? Am I overlooking some obvious Java util class?

Thanks,
Josh
 
Thank you very much. It apparently supports the "arbitrary-precision integers" that I was looking for. I guess I should have looked around the Javadocs before I posted the question.

Thanks again,
Josh
 
Back
Top