# Canonical form of list of Integers

How can I get the canonical form of a list? I tried

a = FactorInteger[Range[10, 11]]
b = Apply[Superscript, a, {2}]
CenterDot @@@ b


resulting in

{Superscript[2,1]\[CenterDot]Superscript[5,1],
CenterDot[Superscript[11,1]]}


Output for 10 is OK. But for case 11 the word "CenterDot" is in the output. How do I get rid of it? Or is there a more elegant way to "canonize" list or lists of integers?

in 11.3 it works.

a = FactorInteger[Range[10, 11]]
b = Apply[Superscript, a, {2}]
f = If[Length@# == 1, #[[1]], CenterDot @@ #] &;
f /@ b

• OK! Right! I got it! Thank you! – user57467 Dec 14 '19 at 4:13

CenterDot[u_] := u

a = FactorInteger[Range[1, 11]];