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

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

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?