Re: multivar for loop variables
"Ruud H.G. van Tol" <[email protected]> Thu, 30 Apr 2026 15:51:00 +0200
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2026-04-29 20:31, Bill Allombert wrote: > [...] > one can now write > foreach(factor(120)~,[p,e],print(p,"^",e)) Thanks. I must have tried that many times (and then again forgot that it doesn't work). > parforprime(p=2,1000,my(N=2^p-1);[N,ispseudoprime(N)],[N,t],if(t,print(p,":",N))) Woosh! -- Ruud