News for hackers. Stuff that matters.
Re:Primg – Generate prime numbers whose binary representatio... by ot on Monday January 29, 2018 @10:54PM (#16262775)
> numberBigInt = numberBigInt.minus(1)

https://github.com/geonnave/primg/blob/master/index.html#L82

Could go double as fast subtracting 2 instead of 1 (why try the even numbers).

Re:Primg – Generate prime numbers whose binary representatio... by geonnave on Tuesday January 30, 2018 @08:29AM (#16265062)
I assume the BigInteger library, which offers isPrime() and isProbablyPrime() functions, already does that kind of optimization.