Anonymous user
Palindromic gapful numbers: Difference between revisions
m
Removed useless tuple assignment and renamed "result" to "res" to avoid compilation warning.
m (Removed "typetraits" import in second program.) |
m (Removed useless tuple assignment and renamed "result" to "res" to avoid compilation warning.) |
||
Line 2,220:
proc make_palindrome(front_half: uint64, power: int): uint64 =
var
if (power and 1) == 0:
while front_half > 0:
front_half = front_half div 10
proc palindromicgapfuls(digit, count, keep: int): seq[uint64] =
|