Largest palindrome product: Difference between revisions

m
Int128
m (Int128)
Line 522:
m, sol = 0, (0, 0)
for i in 1:L
lo = max(Int128(i), BigIntInt128(up - (up - L + 1)^2 ÷ (up - i)) + 1)
hi = BigIntInt128(up - (up - L)^2 ÷ (up - i))
for j in lo:hi
I = (up - i) * 10^tail
Line 568:
15 465 (999999998341069, 999999975838971) 999999974180040040081479999999
16 51 (9999999900000001, 9999999999999999) 99999999000000000000000099999999
104 62.068516575515 seconds (950241.7950 M allocations: 2916.436491 GiB, 2225.8720% gc time, 0.0407% compilation time)
</pre>
 
4,102

edits