Ilya Zakharevich on Sat, 13 Jan 2024 10:42:44 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Big GOTCHAs WITH forprime()


On Sat, Jan 13, 2024 at 02:25:53AM +0100, Oliver Bandel wrote:
> How do you meaure the time in your two short examples at the top?
> A complete code, that shows it, would be nice.

The example of the code is immediately above the table.  For example,
for the bottom right entry:

     my(s=191*10^15); forprime(p=s, s + 6*10^8,);

> Regarding your crash: I could not confirm it on my (quite old) laptop.

Mine is 10 years old.  i5-3210M.  (But I do not think this is
relevant.)  It is Win 7 with all the possible updates.  Yours is
Linux & threaded.  (⇒ Different memory layout.)

Ilya