Thread: Combined Sieve View Single Post
2020-12-11, 23:47   #12
SethTro

"Seth"
Apr 2019

22·67 Posts

Quote:
 Originally Posted by SethTro The code uses gmp for numbers with < 8000 bits and pfgw for larger numbers. Sadly it's currently making one call per prime (e.g. hundreds per interval) I haven't found any easy way to make multiple calls (maybe I can write a list of all the offsets to check like Robert did in https://www.mersenneforum.org/showpo...&postcount=203 but I wasn't sure if pfgw stopped after the first prime.
Looks like I can do this

Code:
ABC $a*1009#/3018+$b // {number_primes,$a,1} 1 192 1 324 1 512 1 648 1 768 1 1296 1 2066 1 2126 Does anyone know if I can do something like {number_primes,1} instead of adding the dummy$a parameter? or maybe I'll just use m there