Message Boards Message Boards

Create a list of IntegerPartitions, partitions with prime numbers only?

GROUPS:

I would like to create a list of

IntegerPartitions[n, All, {2,3,5,7,11,13,17,.....}] 

which only includes partitions that consist of prime numbers. However it does not seem possible to replace {...} by - for example -

Table[Prime[n],{n,100}]

Is there another way to achieve this?

Thank you

Dirk

POSTED BY: dirk van zuijlen
Answer
1 year ago
IntegerPartitions[20, All, Table[Prime[n], {n, 100}]] 

Works fine in version 11.0.1 and 10.4.1 MacOSX. What is your problem?

POSTED BY: Sander Huisman
Answer
1 year ago

Group Abstract Group Abstract