OFFSET
0,9
FORMULA
MATHEMATICA
Table[Sum[Sum[Sum[Sum[Sum[(PrimePi[i] - PrimePi[i - 1]) + (PrimePi[j] - PrimePi[j - 1]) + (PrimePi[k] - PrimePi[k - 1]) + (PrimePi[l] - PrimePi[l - 1]) + (PrimePi[m] - PrimePi[m - 1]) + (PrimePi[n - i - j - k - l - m] - PrimePi[n - i - j - k - l - m - 1]), {i, j, Floor[(n - j - k - l - m)/2]}], {j, k, Floor[(n - k - l - m)/3]}], {k, l, Floor[(n - l - m)/4]}], {l, m, Floor[(n - m)/5]}], {m, Floor[n/6]}], {n, 0, 50}]
Table[Count[Flatten[IntegerPartitions[n, {6}]], _?PrimeQ], {n, 0, 50}] (* Harvey P. Dale, Sep 03 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Aug 03 2019
STATUS
approved