The following question is related to: Elementwise join
I have the following code:
listStrings = {"LCM[48,108]", "LCM[450,780]", "LCM[49,66,33]",
"LCM[10,15,18 ]", "LCM[8,16,25]", "LCM[32,45,50]", "LCM[125,325]",
"LCM[258,645]"};
listData = {LCM[48, 108], LCM[450, 780], LCM[49, 66, 33],
LCM[10, 15, 18], LCM[8, 16, 25], LCM[32, 45, 50], LCM[125, 325],
LCM[258, 645]};
primeFactors = FactorInteger[listData];
As output I would like to have such a table:
From Elementwise join I could reproduce with:
Grid[MapThread[Riffle[{#1}, {#2}] &, {listData, primeFactors}],
Frame -> All, Alignment -> Left]
the last two columuns:
How can I join to this the first column (listStrings) at left as shown in the table above?
Is it possible to generalize the code for any number of columns (lists)?



