hermann on Wed, 27 Sep 2023 14:15:03 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: primorial operator '#' for GP? |
On 2023-09-25 10:09, Bill Allombert wrote:
Better do ? vecprod(primes([1,11])) %1 = 2310
OK, I will use this for now: ? primorial(x)=vecprod(primes([1,x])); ? primorial(11) %4 = 2310 ?
Any chance to see "#" as operator in GP like "!"? ? 11# *** syntax error, unexpected '#', expecting end of file: 11# *** ^-I suppose we could add a primorial() function but adding a new operator wouldbe a bit too much.
There are 160 matches for "#" in list of 5000 largest primes: https://t5k.org/primes/lists/all.txt rank description digits who year comment----- ------------------------------- -------- ----- ---- --------------
... 456 3267113#-1 1418398 p301 2021 Primorial ... 5740 113225039190926127209*2339#/57057+7 1002 c88 2021 Septuplet (3) ... I understand the "a bit too much" statement.But it would be nice if just copying 2nd column "as is" would work in GP ...
Regards, Hermann.