Category talk:Wren-i64: Difference between revisions
→Source code (Wren): Removed the previous limitation on the U64.isPrime method.
m (→Source code (Wren): Tweak.) |
(→Source code (Wren): Removed the previous limitation on the U64.isPrime method.) |
||
Line 623:
// Returns true if 'x' is prime, false otherwise.
static isPrime(x) {
if (!(x is U64)) x = from(x)
var isbp = isBasicPrime_(x)
if (isbp != null) return isbp
var a
if (x < 2047) {
|