0%

Problem 874


Problem 874


Maximal Prime Score

Let p(t) denote the (t+1)th prime number. So that p(0)=2, p(1)=3, etc.

We define the prime score of a list of nonnegative integers [a1,,an] as the sum i=1np(ai).

Let M(k,n) be the maximal prime score among all lists [a1,,an] such that:

  • 0ai<k for each i;
  • the sum i=1nai is a multiple of k.

For example, M(2,5)=14 as [0,1,1,1,1] attains a maximal prime score of 14.

Find M(7000,p(7000)).


最大质数得分

p(t)为第(t+1)个质数,因此p(0)=2p(1)=3,依此类推。

定义非负整数列[a1,,an]质数得分i=1np(ai)

考虑所有满足如下条件的非负整数列[a1,,an],记M(k,n)为其质数得分的最大值:

  • 对于所有i0ai<k
  • 数列和i=1naik的倍数。

例如,M(2,5)=14,最大质数得分14在数列[0,1,1,1,1]时取得。

M(7000,p(7000))


Gitalking ...