Bill Allombert on Thu, 25 Jan 2024 10:39:42 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Big GOTCHAs WITH forprime()
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: Big GOTCHAs WITH forprime()
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 25 Jan 2024 10:39:35 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1706175579; c=relaxed/relaxed; bh=C7YoNa3Y57HeYwv3kPq321sCm9gauvoZJTei2HlilWI=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=GMkeUer2LCNVBYuZazOa/QekM51aXc+zYF7OZeqH92WFZhlG0CLSJlBcoT/qWl7Tsmda5Z8GuOQiO5A5FNPG8h5Kv27h2Q4Jkfc4/tgV+nkKrPMf3H6gRXMqGSyrScrUQAsb85CihM/Rr3V5YpnaiKGrER7GKpF9XAbzE12W3kwGIKjcRecqFeFMSHFQlCICpJqumDrjivlcg4FWvwy72y9bxYWC6dDFpZeF0FBKa7FlWYgFU1Aen27rNf263i1B1Fr1j0B38VjoADyJJM6jpAW47dS5OjpPO6FSx/O8Un9r8INkDkocYMvzXX28kh6DVJVu/0ibQkHSBNVXv+9eRwpam0HBhxOB7JGqtjVI5uvaxIpyXwTBaAJNZwW6VcIZ2eDRsY7bfcz7K8BLKcZ31CYhEqVwuw14enxGiEswPomy9CKRZOqIjnNPNEfnq/ON+ZSxYYlSk+szIYR9oYPZWjwR0Ch313od7pPsEUSikjfQ8YwZKD8O9nBY9XY0K/Rg1rv+kGvgmX0Dv4aCcz9z75cRnld1FOSSE+58tzNORIJ0++4ROfm1iyK3lScVGYxl+IHx7xBk1ItcO2mzPQ0jOUqwovzAOIeC6XbIcda79r/NcoIA9AjE3IE1qnWDdfpY9bULMZH+/Vdy+07C8MMCH9js/US6jbzqcgYAl5OS1aE=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1706175579; cv=none; b=LTJmqRqo5lpiEgfuXJC5EpxURKfK3kIuh/5vsiiePU0/pSQp+DIuqdsTMGeREM+lDYpwJsVO/RrwAgFjcAJRIq1MngxDuAHd4r1xJl0pr4jvw1TMu8zzh0kDiEGuGq6X95jrC7LjbZgr+cVWAAKYYoDXnmf0rS6a3rOfncEbOVtFrIbK35aqfaW7HjvH6dsDBCYKvSEWDYUGSia/jEj+ETE93cQQ4c0einPAuj9cL0tjU5U1p8JOZFmLNOX/c29QzGnUj4qOi1RgqDSPFB/fBCvV+SR5BKRfsnHdYowF9Kx1Frg5jwoHzoWoe6FbpKKw6D6v1lp3Xb1mYVj9WyjxSdKOgqnDHqd/8snTyMq77xnJR5BY8bJyL/eymtUmdPCjt2XS8ztEpQq5CsHPP/7vHkF8VF+J+zk9nMqPjSXoUAWIqmC4P/I/8E7bBtPJe2GVjXGPndHKlp/ytlpk44kqFnmtuDR3GRC74vf9maEMWXeMFVZ8eFLp1mhf7T8wu17ztTkRquIahhKAt3TCiK8Je7qPo/6S8pgoyveiImZ9DKs2//OCjAVg0d/ptmqjgK7eZmc9D7phFPJU9sqre82il+7bOFoOO+GuS0PryJb4uCHnBnf4D0ZBBBOU3Gk96b4TMWAkiF9HJL8eCoRVZcE8cEMyhrxiRGFxP9PQlgP3mUM=
- Authentication-results: smail; arc=none
- Delivery-date: Thu, 25 Jan 2024 10:39:43 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1706175579; bh=C7YoNa3Y57HeYwv3kPq321sCm9gauvoZJTei2HlilWI=; h=Date:From:To:Subject:References:In-Reply-To:From; b=et1eggSwZFX+KTl5Jkl+HVkActwO2cxYh7QGaDax704ey6TWU2XKEuYQBCjkTBLLU vG2YEWDNkAX1UQ9qKs6srcMvzmbOh85mPzKBh8XYbY6CCtDVdW3bvvZoZPWajevB4l IXtkyV2dnfzVXRg7YGjp5FE3JeyBQJM5eNBo1472m0x/gPF0zU4A+10KoDz7QUL3F2 7G6H7u4F3ITKWzqWbfylK5qHfXVzHZNjfEXg/9kZXOzI9WxsJvK4oStTsUoLDl10PD 25caxP2RKQ2w+h6TxJHf4xUY6tHs9oJkCHjgtNwNuny+6G0WeLlnVU/8xNID4smHkO bF88EkJPEsVWGKmjjYW89qDfnye63Bwtj+iwb6TmsjEHPojPsBGLAU7HdTnx+CgngL 0hPWN9aYXnDTUykmAyGMGua5P1QkiZU03p2K8F/qBle46KTcrltgoslqakdE05AkfX XtkrqIRyDJHxnYuxVAnN8QwPxkFoVxAExYCXcaylDQ+L60AOQ10yTlp8PtzGwSZ/gX yFx8EzafwkURZPwLZn1jBS/RwVtNf8gx4DwV9nxM1lty3mRxAydvxClYROKC+4+hF6 M8yO65pRh1hIQwznfYHA1O62L3utCv8zmGebEUKYtHsIm2T4aazY2XDQ/2xo3ITDbi JOzjcv3KK1fo01efoifTCduI=
- In-reply-to: <ZbGeB0PdjKXgXeIg@login.math.berkeley.edu>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <ZaG84aA6uMc6py4C@login.math.berkeley.edu> <u4bkqjj4bnqizeu3kzybewoocsm44itdwcrvhcxhwfqmf7ciog@ymw2zwzle5ro> <ZbDTlhhXt17RDR+p@login.math.berkeley.edu> <ZbDvYJMpBPRSdZLk@seventeen> <ZbGeB0PdjKXgXeIg@login.math.berkeley.edu>
On Wed, Jan 24, 2024 at 03:32:23PM -0800, Ilya Zakharevich wrote:
> On Wed, Jan 24, 2024 at 12:07:12PM +0100, Bill Allombert wrote:
> > On Wed, Jan 24, 2024 at 01:08:38AM -0800, Ilya Zakharevich wrote:
> > > Anyway — unless you want (the dubious fun of) running the binary
> > > search yourself — you missed the second part of the bug report
> > > https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2520#10
> > > which lists the command which fails immediately on my system.
> >
> > Indeed, but so far nobody else has been able to reproduce this.
> >
> > On linux:
> >
> > [190333000000000000.00000000000000000000,190334500000000000.00000000000000000000,10354,97]
>
> I REALLY wonder what is so wrong with my prose that “nobody else” can
> read it… Just in case, I repeat the reference for the third time:
>
> https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2520#10
Yes, I was running the immediate running version but without
primelimit=400000000000
Now on linux, with GP 2.15.4:
% gp -qf --default primelimit=400000000000
? my((f(s)=forprime(p=s,s+10^8,)),n=98,x=190333*10^12,y=x+2*10^12,t,z,t0);while(n>0,t=getwalltime();n-=1+if(if(1,f(z=(x+3*y)/4);20000<(t0=-(t-(t=getwalltime())))),x=z;4,y=z;0);print([1.*x,1.*y,t0,n]))
[190333000000000000.00000000000000000000, 190334500000000000.00000000000000000000, 10650, 97]
[190334125000000000.00000000000000000000, 190334500000000000.00000000000000000000, 32178, 92]
[190334125000000000.00000000000000000000, 190334406250000000.00000000000000000000, 10259, 91]
[190334125000000000.00000000000000000000, 190334335937500000.00000000000000000000, 10436, 90]
[190334125000000000.00000000000000000000, 190334283203125000.00000000000000000000, 10284, 89]
[190334125000000000.00000000000000000000, 190334243652343750.00000000000000000000, 10629, 88]
[190334125000000000.00000000000000000000, 190334213989257812.50000000000000000000, 10562, 87]
% valgrind gp -qf --default primelimit=400000000000
==135725== Memcheck, a memory error detector
==135725== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==135725== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==135725== Command: gp -qf --default primelimit=400000000000
==135725==
? my((f(s)=forprime(p=s,s+10^8,)),n=98,x=190333*10^12,y=x+2*10^12,t,z,t0);while(n>0,t=getwalltime();n-=1+if(if(1,f(z=(x+3*y)/4);20000<(t0=-(t-(t=getwalltime())))),x=z;4,y=z;0);print([1.*x,1.*y,t0,n]))
[190334500000000000.00000000000000000000, 190335000000000000.00000000000000000000, 93983, 93]
[190334875000000000.00000000000000000000, 190335000000000000.00000000000000000000, 93132, 88]
[190334968750000000.00000000000000000000, 190335000000000000.00000000000000000000, 92726, 83]
Cheers,
Bill.