Write NumPrimePartitions.