Number of distinct prime partitions [duplicate]
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: A number as it’s prime number parts I have this homework assignment of mine, hard as hell, where I have to get all the distinct prime partitions of a given number. For example, number 7 has five different prime partitions (or five different ways of representing the 2 prime partitions it has): 5 + 2 2 + 5 3 + 2 + 2 2 + 3 + 2 2 + 2 + 3 As you can see, the number itself is excluded in the case it's a prime. I don't