Multicolumn OutputMapThread with several cells as outputAssign the output of a loopUnexpected output from oddSublistsWhat is this Counts[] output format?Output matrix with common elementsSeparation of outputFunction outputHelp with limiting outputoutput has a term uncomputedOutput of List@@func

How to ask if I can mow my neighbor's lawn

Using roof rails to set up hammock

Why can't I craft scaffolding in Minecraft 1.14?

Do my partner and son need an SSN to be dependents on my taxes?

How to address players struggling with simple controls?

Is swap gate equivalent to just exchanging the wire of the two qubits?

Will users know a CardView is clickable?

Digital signature that is only verifiable by one specific person

How do I become a better writer when I hate reading?

Fill the maze with a wall-following Snake until it gets stuck

I have found ports on my Samsung smart tv running a display service. What can I do with it?

How to search for Android apps without ads?

What is the context for Napoleon's quote "[the Austrians] did not know the value of five minutes"?

Catching a robber on one line

What is the precise meaning of "подсел на мак"?

Is this set open or closed (or both?)

Testing thermite for chemical properties

Is the infant mortality rate among African-American babies in Youngstown, Ohio greater than that of babies in Iran?

How do I run a script as sudo at boot time on Ubuntu 18.04 Server?

Is there a risk to write an invitation letter for a stranger to obtain a Czech (Schengen) visa?

Having some issue with notation in a Hilbert space

Can you cover a cube with copies of this shape?

Can "Es tut mir leid" be used to express empathy rather than remorse?

Redirecting output only on a successful command call



Multicolumn Output


MapThread with several cells as outputAssign the output of a loopUnexpected output from oddSublistsWhat is this Counts[] output format?Output matrix with common elementsSeparation of outputFunction outputHelp with limiting outputoutput has a term uncomputedOutput of List@@func













6












$begingroup$


The code



Multicolumn[
Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100],
5]


yields 5 columns of primes 2, ...,541, each paired with its least positive primitive root (LPR). I wish to display the output without curly braces or commas in 10 columns with 20 rows. The desired output is shown below. Any help is appreciated.



Thanks.



desired output










share|improve this question









New contributor



David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$











  • $begingroup$
    Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
    $endgroup$
    – Algohi
    Jun 9 at 5:36















6












$begingroup$


The code



Multicolumn[
Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100],
5]


yields 5 columns of primes 2, ...,541, each paired with its least positive primitive root (LPR). I wish to display the output without curly braces or commas in 10 columns with 20 rows. The desired output is shown below. Any help is appreciated.



Thanks.



desired output










share|improve this question









New contributor



David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$











  • $begingroup$
    Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
    $endgroup$
    – Algohi
    Jun 9 at 5:36













6












6








6





$begingroup$


The code



Multicolumn[
Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100],
5]


yields 5 columns of primes 2, ...,541, each paired with its least positive primitive root (LPR). I wish to display the output without curly braces or commas in 10 columns with 20 rows. The desired output is shown below. Any help is appreciated.



Thanks.



desired output










share|improve this question









New contributor



David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$




The code



Multicolumn[
Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100],
5]


yields 5 columns of primes 2, ...,541, each paired with its least positive primitive root (LPR). I wish to display the output without curly braces or commas in 10 columns with 20 rows. The desired output is shown below. Any help is appreciated.



Thanks.



desired output







list-manipulation






share|improve this question









New contributor



David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited Jun 9 at 1:05









Carl Lange

6,99411748




6,99411748






New contributor



David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked Jun 9 at 0:07









DavidDavid

333




333




New contributor



David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • $begingroup$
    Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
    $endgroup$
    – Algohi
    Jun 9 at 5:36
















  • $begingroup$
    Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
    $endgroup$
    – Algohi
    Jun 9 at 5:36















$begingroup$
Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
$endgroup$
– Algohi
Jun 9 at 5:36




$begingroup$
Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
$endgroup$
– Algohi
Jun 9 at 5:36










1 Answer
1






active

oldest

votes


















8












$begingroup$

You can Flatten every row of the grid object produced by MultiColumn using MapAt:



MapAt[Flatten, 
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
1, All]


enter image description here



Alternatively, you can use FlattenAt:



FlattenAt[Tuples[1, Range[100/5], Range[5]]] @ 
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]



same picture




You can also transform each pair a, b in the table into a Row separated by Spacer:



Multicolumn[Table[
Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
i, 1, 100], 5]


enter image description here






share|improve this answer











$endgroup$













    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "387"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    David is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f199995%2fmulticolumn-output%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    8












    $begingroup$

    You can Flatten every row of the grid object produced by MultiColumn using MapAt:



    MapAt[Flatten, 
    Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
    1, All]


    enter image description here



    Alternatively, you can use FlattenAt:



    FlattenAt[Tuples[1, Range[100/5], Range[5]]] @ 
    Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]



    same picture




    You can also transform each pair a, b in the table into a Row separated by Spacer:



    Multicolumn[Table[
    Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
    i, 1, 100], 5]


    enter image description here






    share|improve this answer











    $endgroup$

















      8












      $begingroup$

      You can Flatten every row of the grid object produced by MultiColumn using MapAt:



      MapAt[Flatten, 
      Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
      1, All]


      enter image description here



      Alternatively, you can use FlattenAt:



      FlattenAt[Tuples[1, Range[100/5], Range[5]]] @ 
      Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]



      same picture




      You can also transform each pair a, b in the table into a Row separated by Spacer:



      Multicolumn[Table[
      Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
      i, 1, 100], 5]


      enter image description here






      share|improve this answer











      $endgroup$















        8












        8








        8





        $begingroup$

        You can Flatten every row of the grid object produced by MultiColumn using MapAt:



        MapAt[Flatten, 
        Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
        1, All]


        enter image description here



        Alternatively, you can use FlattenAt:



        FlattenAt[Tuples[1, Range[100/5], Range[5]]] @ 
        Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]



        same picture




        You can also transform each pair a, b in the table into a Row separated by Spacer:



        Multicolumn[Table[
        Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
        i, 1, 100], 5]


        enter image description here






        share|improve this answer











        $endgroup$



        You can Flatten every row of the grid object produced by MultiColumn using MapAt:



        MapAt[Flatten, 
        Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
        1, All]


        enter image description here



        Alternatively, you can use FlattenAt:



        FlattenAt[Tuples[1, Range[100/5], Range[5]]] @ 
        Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]



        same picture




        You can also transform each pair a, b in the table into a Row separated by Spacer:



        Multicolumn[Table[
        Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
        i, 1, 100], 5]


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 9 at 1:30

























        answered Jun 9 at 0:30









        kglrkglr

        198k10223449




        198k10223449




















            David is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            David is a new contributor. Be nice, and check out our Code of Conduct.












            David is a new contributor. Be nice, and check out our Code of Conduct.











            David is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Mathematica Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f199995%2fmulticolumn-output%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form