1 |
Am Freitag, 18. Juni 2021, 21:10:27 CEST schrieb Michael Orlitzky: |
2 |
> > This depends on the actual domain of numbers. If the primes involved |
3 |
> > have 20 digits as in your example, then factor should be used of course. |
4 |
> > |
5 |
> > I suspect though that we're talking about small numbers (below 100?) |
6 |
> > here, in which case a solution in pure bash would be preferable. |
7 |
> |
8 |
> If so, we could just list them all. |
9 |
|
10 |
The primes are usually small, the default is 23, and I have never seen anyone |
11 |
_lowering_ that number. The whole point is: the algorithm does much more than |
12 |
it should, which makes it needlessly verbose. The simpler the solution the |
13 |
better, preferably without restricting the actual number. |
14 |
|
15 |
Eike |