Ok, well I'm printing out every prime the program finds (not prime factors since they're what I'm actually trying to discover), so I guess I should try not outputting them to the screen and maybe writing every 500th prime or so to a file so if something does happen, I'm not too far behind.
And if it matters, I'm printing out a string to the console since that's how the BigInteger class seems to handle the long numbers.
|