summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2022-06-18 15:52:35 +0000
committertb <>2022-06-18 15:52:35 +0000
commit9eb4dc8303750bccddf380066dee5d37712df51f (patch)
tree151eb3f95ee74e829df842540b6413d18db542bb /src/lib/libc
parent3a46f7707ca08368cff8711eeaed4f8deb7f38c9 (diff)
downloadopenbsd-9eb4dc8303750bccddf380066dee5d37712df51f.tar.gz
openbsd-9eb4dc8303750bccddf380066dee5d37712df51f.tar.bz2
openbsd-9eb4dc8303750bccddf380066dee5d37712df51f.zip
Fix prime recognition when doing trial divisions
If gcd(a, primes[i]) == 0 then a could still be a prime, namely in the case that a == primes[i], so check for that case as well. Problem noted by Martin Grenouilloux ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions