Square form factorization: Difference between revisions

m
→‎{{header|Wren}}: Added a word to the preamble.
(Added Wren)
m (→‎{{header|Wren}}: Added a word to the preamble.)
Line 695:
'0' is not actually an example here but is used by FreeBASIC to mark the end of the 'data' statement list so I've ignored that.
 
As Wren doesn't natively support unsigned 64-bit arithmetic, I've used the ULong class in the first above named module for this task.
 
Even so, there are two examples which fail (1000000000000000127 and 1537228672809128917) because the code is unable to process enough 'multipliers' before an overflow situation is encountered. To deal with this, the program automatically switches to BigInt to process such cases.
9,493

edits