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