title: how to parallelise this code in hpc?
body: <pre><code>s=1
  
  r=m=n=o=p=q=u=t=19
  
  myfile = fopen ("sequence2.txt", "w", "ieee-le");
  
  for a=0:1
  
    if(a==1)
  
        r=5
  
    endif
  
    for b=0:r
  
      if(a==1 &amp;&amp; b==5)
  
      m=11
  
      endif   
  
  for c=0:m
  
  n=o=19
  
    for d=0:1
  
  if(d==1)
  
    n=5
  
    endif
  
  for e=0:n
  
    if(d==1 &amp;&amp; e==5)
  
      o=11
  
          endif   
  
    for f=0:o
  
      p=q=19
  
      for g=0:1
  
        if(g==1)
  
      p=5
  
        endif
  
        for h=0:p
  
      if(g==1 &amp;&amp; h==5)
  
        q=11
  
          endif   
  
      for i=0:q
  
        t=u=19
  
        for j=0:1
  
          if(j==1)
  
            t=5
  
          endif
  
          for k=0:t
  
            if(j==1 &amp;&amp; k==5)
  
          u=11
  
                endif   
  
            for l=0:u
  
  
  
          s=s+1
  
          fputs(myfile,num2str(a));
  
          fputs(myfile,".");
  
          fputs(myfile,num2str(b)); 
  
          fputs(myfile,".");
  
          fputs(myfile,num2str(c));
  
          fputs(myfile,":");
  
          fflush(stdout);
  
          fputs(myfile,num2str(d));
  
          fputs(myfile,".");
  
          fputs(myfile,num2str(e)); 
  
          fputs(myfile,".");
  
          fputs(myfile,num2str(f));
  
          fputs(myfile,":");
  
          fflush(stdout);
  
          fputs(myfile,num2str(g));
  
          fputs(myfile,".");
  
          fputs(myfile,num2str(h)); 
  
          fputs(myfile,".");
  
          fputs(myfile,num2str(i));
  
          fputs(myfile,":");
  
          fflush(stdout);
  
          fputs(myfile,num2str(j));
  
          fputs(myfile,".");
  
          fputs(myfile,num2str(k)); 
  
          fputs(myfile,".");
  
          fputs(myfile,num2str(l));
  
          fputs(myfile,"\n");
  
          fflush(stdout);
  
          end
  
            end
  
          end
  
        end
  
          end
  
        end
  
      end
  
        end 
  
  end
  
    end
  
  end 
  
    end
  </code></pre>
  
  <p>The above code in octave is to generate a number sequence that is writing to a text file. it will take days to complete execution since it is generating around 2^36 numbers.  so can anyone please let us know how to parallelise this code in hpc.</p>