Partition an integer x into n primes: Difference between revisions

→‎{{header|Mathematica}}: flagged as incomplete output, flagged as incorrect.
No edit summary
(→‎{{header|Mathematica}}: flagged as incomplete output, flagged as incorrect.)
Line 922:
 
=={{header|Mathematica}}==
 
{{output?|Mathematica}}
 
{{incorrect|<Mathematica| <br><br> the partitioning of &nbsp; '''40,356''' &nbsp; into three primes isn't the lowest primes that are possible, <br>
the primes should be: <br><br> &nbsp; <big> '''3''', &nbsp; '''139''', &nbsp; '''40213'''. </big> &nbsp; <br>}}
 
 
Just call the function F[X,N]
<lang Mathematica>F[x_, n_] :=
Line 938 ⟶ 945:
Partitioned 40355 with 3 primes: 5+7+40343
</pre>
 
 
=={{header|PARI/GP}}==