Is there an upper limit on .txt file size?

前端 未结 11 2361
礼貌的吻别
礼貌的吻别 2021-02-18 14:03

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

11条回答
  •  囚心锁ツ
    2021-02-18 14:13

    More than likely you are using an algorithm that is slow. As the primes get larger your program will be taking longer and longer to calculate a single prime. If you let it run over night the text file is not going to be very large in the morning. I'd be impressed if it's over a couple of megs.

提交回复
热议问题