News for hackers. Stuff that matters.
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?
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...

Re:Primg – Generate prime numbers whose binary representatio... by geonnave on Monday January 29, 2018 @07:41PM (#16261968)
It is indeed! Haven't noticed the binary was wrong too.
Re:Primg – Generate prime numbers whose binary representatio... by geonnave on Monday January 29, 2018 @07:29PM (#16261901)
Hmm, that screenshot is from first tests, it is clearly a bug -- but hopefully fixed now :)