Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -15,7 +15,7 @@ scope # find unprimeable numbers - numbers which can't be made into a prime by c
od;
# returns true if n is unprimeable, false otherwise
local procedure isUnprimeable( n :: number ) :: boolean
local proc isUnprimeable( n :: number ) :: boolean
local result := false;
if n < 100 then return false
elif prime[ n ] then return false
@ -63,7 +63,7 @@ scope # find unprimeable numbers - numbers which can't be made into a prime by c
end
# returns a string representation of n with commas, n must be an integer
local procedure commatise( n :: number ) :: string
local proc commatise( n :: number ) :: string
local constant nStr := tostring( abs n );
local constant signStr := if n < 0 then "-" else "" fi;
local constant cStr := strings.reverse( strings.gsub( strings.reverse( nStr ), "%d%d%d", "%1," ) );