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

2 lines
113 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
hasSmallestFactor[data_List]:=Sort[Transpose[{ParallelTable[FactorInteger[x][[1, 1]], {x, data}],data}]][[1, 2]]