in reply to Re: Odd error message
in thread Odd error message

Thank you shadowsong. I tried this on my batch, but it did not terminate after 1 day, suggesting a massive loss of efficiency (it should have completed in 30 minutes). Also some of my results have NaN, so I will have to look into that. But I can confirm the program did not crash!

Replies are listed 'Best First'.
Re^3: Odd error message
by robert44444uk (Acolyte) on Sep 15, 2015 at 17:57 UTC

    hmm, the NaN problem is a known problem when running Strawberry Perl sadly with this particular package - related to the log function

Re^3: Odd error message
by shadowsong (Pilgrim) on Sep 16, 2015 at 19:27 UTC

    robert44444uk,

    No problem. I had another crack at it using what I thought would entail slightly less overhead:

    However, it performed just as bad as your attempts using next_prime and prev_prime if not worse...

    We'd be very keen to see how/if you managed to get your script to perform better.

    Best of luck (and God speed)
    shadowsong

      Thank you Shadowsong. I have had to concentrate on work this last week. When this settles down I will have another go at this program.