title: Matrix separating prime numbers and composite then sorts them
body: <p>I have no ideas on how to do this.. i would appreciate it if someone helps,
  In a matrix , where prime numbers come first and then composite , sorting is done by columns,</p>
  
  <p>Here is an example.</p>
  
  <p>Input:</p>
  
  <pre><code>25  3  7
  11 15 32
  16  9 19
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code> 3 19 32
   7 25 16
  11 15  9
  </code></pre>