Partition an integer x into n primes: Difference between revisions

Content added Content deleted
(Added 11l)
Line 80: Line 80:
V combo = [0] * m
V combo = [0] * m
I !find_combo(0, x, m, n, &combo)
I !find_combo(0, x, m, n, &combo)
print(‘Partitioned #5 with #2 #.: (not possible)’.format(x, m, I m > 1 {‘primes’} E ‘prime’))
print(‘Partitioned #5 with #2 #.: (not possible)’.format(x, m, I m > 1 {‘primes’} E ‘prime ’))


V data = [(99809, 1), (18, 2), (19, 3), (20, 4), (2017, 24),
V data = [(99809, 1), (18, 2), (19, 3), (20, 4), (2017, 24),