Here's a little challenge. Can you implement the "one line factoring"
algorithm in one line of *Python* code?
Adding this algorithm to Sage could be a go project, if it is super
well documented, optimized, etc.
William
Yep, that works fine. Nice!
You can just use math.ceil and math.sqrt above to avoid having to
import them, since "import math" is done by default in sage.all.
I've attached a screenshot showing OneLineFactor really working in a
single line. I think it is far more impressive to write a 1-line
program in Python than in PARI, and you've shown Bill Hart's name for
this algorithm is fully justified.
-- William