Category talk:Wren-long: Difference between revisions

→‎Source code: Removed the previous limitation on the ULong.isPrime method.
m (→‎Source code: Tweak.)
(→‎Source code: Removed the previous limitation on the ULong.isPrime method.)
Line 424:
 
// Returns true if the current instance is prime, false otherwise.
// Fails due to overflow on numbers > 9223372036854775807 unless divisible by 2,3 or 5.
isPrime {
var isbp = ULong.isBasicPrime_(this)
if (isbp != null) return isbp
if (this > ULong.largest/2) Fiber.abort("Cannot test %(this) for primality.")
var a
if (this < 2047) {
9,476

edits