Aurel Page on Tue, 06 Feb 2024 08:40:59 +0100


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

Re: nonprime(n)


Hi,

On 06/02/2024 00:50, Jean-Luc Arnaud wrote:
In addition, gp -q -p257M needs almost 1 GB RAM, whereas gp needs 7.2 MB.
257M is overkill.

$ gp -p4M
? for(n=1,2^18, prime(n));
time = 1,315 ms.

We have all the necessary primes:
? prime(2^18)
% = 3681131

Cheers,
Aurel