3 ms·
The example on https://github.com/geonnave/primg https://github.com/geonnave/primg shows a binary number ending with zero; doesn't that mean it's even, and ther
by knodi123 9y ago
The example on https://github.com/geonnave/primg https://github.com/geonnave/primg shows a binary number ending with zero; doesn't that mean it's even, and therefore divisible by 2?
- geonnave 9y agoHmm, that screenshot is from first tests, it is clearly a bug -- but hopefully fixed now :)
- deleted 9y ago[deleted]
- jwilk 9y agoIf you decrease the binary number by 1, it becomes prime. Perhaps it's this bug: https://github.com/geonnave/primg/commit/7ec6cfaa4b581902ea160e684127e34f6747bc51 https://github.com/geonnave/primg/commit/7ec6cfaa4b581902ea1...
- geonnave 9y agoIt is indeed! Haven't noticed the binary was wrong too.