RosettaCodeData/Task/Parallel-calculations/Mathematica/parallel-calculations.math

2 lines
113 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
hasSmallestFactor[data_List]:=Sort[Transpose[{ParallelTable[FactorInteger[x][[1, 1]], {x, data}],data}]][[1, 2]]