Это легко запретить указав какой именно паттерн перебирать ключом -b и если в него не помещаются высокие степени, то и перебирать их не будет. Перебор расстановок малых простых (т.е. номеров паттернов в -b) легко сделать внешними средствами (хоть батником, хоть из PARI). Кроме того, в ключах -p и -W можно прямо указать максимальную степень простых (в том числе для каждого простого).
Там не всё так просто оказалось.
Например, набор, а значит и нумерация "батчей" может зависеть от параметров запуска pcoul. В том числе - от ключа -x, что совсем неожиданно!
-- 01.12.2025, 19:58 --HuzI have questions about pcoul again. I think this would be interesting to other participants, so I’ll ask them here.
I. What I want:
0. To find D(36,14)
1. use this batch
Код:
2.7^2 . 2^2.3 11^2 2.5^2 3.13^2 2^8 7 2.3^8 5 2^2 3 2 .
2. In this batch you can substitute prime squares up to

inclusive. And I want only such prime numbers to be substituted there and only in the square, and not in large powers.
3. I want up to 10 candidates to be tested for each substitution of these squared primes. After which you need to move on to the next arrangement of squares of prime numbers.
II. What I do for this:
1. I put this batch in the first line of the log file
Код:
305 b0: 2.7^2 . 2^2.3 11^2 2.5^2 3.13^2 2^8 7 2.3^8 5 2^2 3 2 .
2. I set the launch line like this:
Код:
pcoul -x5e71 -r36-14log -p85 -f13 36 14
The -x5e71 key limits the search range so that few candidates are checked for each arrangement of squares of prime numbers
The -p85 key limits the set of primes for substitution in powers
And this is what I see in the log file
(Оффтоп)
Код:
305 b0: 2.7^2 . 2^2.3 11^2 2.5^2 3.13^2 2^8 7 2.3^8 5 2^2 3 2 .
001 pcoul(36 14) -p85 -f13 -x500000000000000000000000000000000000000000000000000000000000000000000000 *RT*
305 b0: 2.7^2 17^8 2^2.3 11^2.47^2 2.5^2 3.13^2.43^2 2^8 7.23^2.73^2 2.3^8 5.29^2.37^2 2^2.53^2 3.41^2.61^2 2.31^2.67^2 19^8: 38 / 49 (579.70s) [59362271 243635 20485 1809 136 11 1 0 0 0 0 0 0 0]
305 b0: 2.7^2 17^8 2^2.3 11^2.31^2 2.5^2 3.13^2.53^2 2^8 7.23^2.59^2 2.3^8 5.29^2.37^2 2^2.43^2 3.47^2.67^2 2.71^2.83^2 19^8: 11 / 12 (1161.98s) [116088261 475203 39656 3413 268 21 1 0 0 0 0 0 0 0]
Starts with an eighth power substitution.
And for some positions, prime squares cannot be substituted
III. Here's another launch option:
1. I put this batch in the first line of the log file
Код:
305 b0: 2.7^2 17^2 2^2.3 11^2 2.5^2 3.13^2 2^8 7 2.3^8 5 2^2 3 2 19^2
2. I set the launch line like this:
Код:
pcoul -x5e71 -r36-14log-1 -p85 "-px1^8" -g1 -f13 36 14
And this is what I see in the log file
(Оффтоп)
Код:
305 b0: 2.7^2 17^2 2^2.3 11^2 2.5^2 3.13^2 2^8 7 2.3^8 5 2^2 3 2 19^2
001 pcoul(36 14) -p85 -px1^8 -f13 -x500000000000000000000000000000000000000000000000000000000000000000000000 *RT*
305 b0: 2.7^2.53^2 17^2.83^5 2^2.3 11^2.79^2 2.5^2 3.13^2.67^2 2^8 7.23^2.73^2 2.3^8 5.29^2.41^2 2^2.47^2 3.31^2.59^2 2.37^2.71^2 19^2.43^2: 0 / 0 (580.59s) [23966805 64659 5580 490 38 4 0 0 0 0 0 0 0 0]
305 b0: 2.7^2 17^2.79^5 2^2.3 11^2.67^2 2.5^2 3.13^2.73^5 2^8 7.23^2.73^2 2.3^8 5.29^2.59^2 2^2.71^2 3.31^2.61^2 2.37^2.83^2 19^2.53^2 (1162.14s) [47504047 127675 10946 946 80 5 0 1 0 0 0 0 0 0]
305 b0: 2.7^2.37^5 17^2.71^5 2^2.3 11^2.83^2 2.5^2 3.13^2.73^2 2^8 7.23^2.47^2 2.3^8 5.29^2.59^2 2^2.53^2 3.31^2.41^2 2.37^2.43^2 19^2.61^2 (1740.16s) [70579388 188809 16071 1367 114 10 1 1 0 0 0 0 0 0]
305 b0: 2.7^2.61^2 17^2.67^5 2^2.3 11^2.83^2 2.5^2 3.13^2.47^2 2^8 7.23^2.59^2 2.3^8 5.29^2.41^2 2^2.79^2 3.31^2.73^2 2.37^2.43^2 19^2.71^2 (2321.97s) [95051828 252528 21570 1819 155 13 1 1 0 0 0 0 0 0]
305 b0: 2.7^2 17^2.67^5 2^2.3 11^2.71^2 2.5^2 3.13^2 2^8 7.23^2.73^2 2.3^8 5.29^2.59^2 2^2.61^5 3.31^2.43^2 2.37^2.53^2 19^2.79^2: 26 / 28 (2903.97s) [119453878 316389 27049 2271 186 16 1 1 0 0 0 0 0 0]
305 b0: 2.7^2 17^2.83^5 2^2.3 11^2.71^2 2.5^2 3.13^2 2^8 7.23^2.73^2 2.3^8 5.29^2.47^2 2^2.61^2 3.31^2.67^2 2.37^2.53^2 19^2.43^5: 22 / 59 (3485.83s) [149435881 394045 33755 2843 237 20 1 1 0 0 0 0 0 0]
Anyway, squares of prime numbers are not substituted in all positions
And I was unable to prohibit the use of powers of prime numbers higher than two.
Question: What set of parameters should I apply when running pcoul to get what I want (section "I. What I want:" above)