in reply to Re^5: checking a set of numbers for consistency mod p
in thread checking a set of numbers for consistency mod p
You should also know which primes to expect. Probably all less 32?
In general, any prime p less than the size of the set, ie p should be small enough that it's possible to have 2 entries divisible by p. As you surmise, for the specific case that implies p < 32.
.. provided valid_set() works flawlessly. ;-)
I recommend taking that as given, until you actually find reason to believe it is flawed.
(and later) here my take on it
Thanks, I'll make time today or tomorrow to go through it and try to actually understand your algorithm.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: checking a set of numbers for consistency mod p (update: still buggy)
by LanX (Saint) on Apr 11, 2022 at 20:17 UTC | |
by hv (Prior) on Apr 12, 2022 at 12:08 UTC | |
by LanX (Saint) on Apr 12, 2022 at 12:24 UTC | |
by hv (Prior) on Apr 12, 2022 at 16:47 UTC | |
by LanX (Saint) on Apr 12, 2022 at 18:55 UTC |