-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added the Number
Num!USE_FACTORDB
class variable (disabled by def…
…ault). When set to `true`, it will use factordb.com for factoring large integers. Example: local Num!USE_FACTORDB = true local Num!VERBOSE = true say factor(43**97 + 1) Output: Looking for special factors: 279537573644609324609042104488898292179227641428833250707338521965848560587594478267049297188913790105014252135597060227656392076730684760843507116797578121644 Recursively factoring: 383960572410536595776063541827409905215247470510012696415691036963446563403266708495873816280688363840075142584625595952461796016693661410799 FactorDB: factoring 383960572410536595776063541827409905215247470510012696415691036963446563403266708495873816280688363840075142584625595952461796016693661410799 FactorDB: successful factorization. [2, 2, 11, 47143, 350981049593, 3245397572372494387092668895749, 13880602646142985759764836199055032337616468929, 8523351548729334004564485798482488516034506243457731885729213219]
- Loading branch information
Showing
2 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters