Jump to content

Category talk:Wren-math: Difference between revisions

m
→‎Source code: Minor bug fix.
(→‎Source code: Int.isPrime now uses a larger wheel - about 25% quicker than before.)
m (→‎Source code: Minor bug fix.)
Line 413:
// Returns the next prime number greater than 'n'.
static nextPrime(n) {
if (n < 2) return 2
n = (n%2 == 0) ? n + 1 : n + 2
while (true) {
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.