Parallel calculations: Difference between revisions

Content deleted Content added
m {{omit from|AutoHotkey}}
Mlochbaum (talk | contribs)
J solution with link
Line 538: Line 538:
12878893 -> [47 274019]
12878893 -> [47 274019]
</pre>
</pre>

=={{header|J}}==
The code at [http://www.jsoftware.com/jwiki/MarshallLochbaum/Parallelize] implements parallel computation. With it, we can write
<lang j> numbers =. 12757923 12878611 12878893 12757923 15808973 15780709 197622519
factors =. q:&.> parallelize 2 numbers NB. q: is parallelized here
ind =. (i. >./) <./@> factors
ind { numbers ;"_1 factors
┌────────┬───────────┐
│12878611│47 101 2713│
└────────┴───────────┘</lang>


=={{header|JavaScript}}==
=={{header|JavaScript}}==