Category talk:Wren-big: Difference between revisions
→Source code: Minor bug fix.
(→Source code: Added BigInt.nextPrime method.) |
(→Source code: Minor bug fix.) |
||
Line 959:
// Returns the next probable prime number greater than 'this'.
nextPrime(iterations) {
if (this < two) return BigInt.two
var n = isEven ? this + 1 : this + 2
while (true) {
|