fork(1) download
  1. (defun radix62 (n)
  2. (concatenate 'string
  3. (nreverse (loop with char = "0123456789abcdefghijklnmopqrstuvwxyzABCDEFGHIJKLNMOPQRSTUVWXYZ"
  4. with radix = (length char)
  5. for m = n then (floor m radix)
  6. until (zerop m)
  7. collect (elt char (mod m radix))))))
  8.  
  9. (let ((n 18446744073709551615))
  10. (format t "~d==~a~%" n (radix62 n)))
Success #stdin #stdout 0.02s 10592KB
stdin
Standard input is empty
stdout
18446744073709551615==lYGhA16ahyf