Partition an integer x into n primes: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added usage comments to the REXX section header, changed REXX program to use a more idiomatic function name.)
m (added more whitespace to the task's preamble.)
Line 12: Line 12:


Show in the '''output''' section the (sum)   '''X'''   and the   '''N'''   primes in ascending order   and separated by plus ('''+''') signs:
Show in the '''output''' section the (sum)   '''X'''   and the   '''N'''   primes in ascending order   and separated by plus ('''+''') signs:
partition '''99809''' with 1 prime.
partition '''99809''' with 1 prime.
partition '''18''' with 2 primes.
partition '''18''' with 2 primes.
partition '''19''' with 3 primes.
partition '''19''' with 3 primes.
partition '''20''' with 4 primes.
partition '''20''' with 4 primes.
partition '''2017''' with 24 primes.
partition '''2017''' with 24 primes.
partition '''22699''' with 1, 2, 3, and 4 primes.
partition '''22699''' with 1, 2, 3, and 4 primes.
partition '''40355''' with 3 primes.
partition '''40355''' with 3 primes.