Talk:Legendre prime counting function: Difference between revisions
Talk:Legendre prime counting function (view source)
Revision as of 06:37, 11 November 2022
, 1 year ago→V and C entries giving the wrong answer for a trillion numbers: thank you...
GordonBGood (talk | contribs) (→V and C entries giving the wrong answer for a trillion numbers: reply to V and C giving wrong answers...) |
GordonBGood (talk | contribs) (→V and C entries giving the wrong answer for a trillion numbers: thank you...) |
||
Line 54:
: I think you'll find that the segmentation fault is the lack of precision in converting to a 32-bit index; in both V and C/C++ one can index by 64-bit integers rather than by 32-bit ones and converting the that will fix the segmentation problem. I've fixed the V version and will leave it up to you to do your C and/or C++ versions... --[[User:GordonBGood|GordonBGood]] ([[User talk:GordonBGood|talk]]) 04:16, 11 November 2022 (UTC)
:: BTW, thanks for "twigging" me on this issue leading to the resolution of both of the problems of the incorrect results and the segmentation faults for higher ranges. --[[User:GordonBGood|GordonBGood]] ([[User talk:GordonBGood|talk]]) 06:37, 11 November 2022 (UTC)
|