View Single Post
Old 2014-02-14, 04:37   #11
daxmick
 
daxmick's Avatar
 
Feb 2014

22×3×7 Posts
Default

Quote:
Originally Posted by potonono View Post
I hope I am explaining this correctly, but the 32-bit limit is for the number of digits of the integer in base 2. If your process is 32-bit, you can't exceed that limit no matter what base your numbers are in (while dealing with the numbers as just integers).

It's been too long since I've had to troubleshoot PHP. Rather than work out your current code issue, based on what you want, have you considered just calling gmp_nextprime over and over starting at 2, and using the last result in each loop?
I've got what you are saying, I think, 100%. I'm not on a 32 bit computer:
Quote:
Linux strieff 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
No worries. If it isn't an easy fix I'll just move to another programming language. I just find it weird since I have other PHP GMP related programs that have run MUCH longer than this one without errors.

Thanks for the thought though!
daxmick is offline   Reply With Quote