Re:Primg – Generate prime numbers whose binary representatio...
by knodi123 on Monday January 29, 2018 @07:09PM
(#16261789)
The example on https://github.com/geonnave/primg shows a binary number ending with zero; doesn't that mean it's even, and therefore divisible by 2?
[ Parent
| on HN ]
Re:Primg – Generate prime numbers whose binary representatio...
by jwilk on Monday January 29, 2018 @07:35PM
(#16261923)
If you decrease the binary number by 1, it becomes prime. Perhaps it's this bug:
https://github.com/geonnave/primg/commit/7ec6cfaa4b581902ea1...