As a Christmas gift I have written a small program in Java to calculate primes. My intention was to leave it on all night, calculating the next prime and writing it to a .txt fi
Only as to the size of the place you're storing the text file on disk.
And, if you're not writing it all right away, your memory + virtual memory.