Anonymous user
Partition an integer x into n primes: Difference between revisions
Partition an integer x into n primes (view source)
Revision as of 22:30, 30 November 2018
, 5 years ago→{{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 '''40,356''' into three primes isn't the lowest primes that are possible, <br>
the primes should be: <br><br> <big> '''3''', '''139''', '''40213'''. </big> <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}}==
|