OFFSET
1,6
COMMENTS
a(m) = 0 for m in A014092.
EXAMPLE
a(14) = 7; There are two partitions of 14 into two primes, (3,11) and (7,7). Since (3*11 mod 14) = 5 and (7*7 mod 14) = 7, then 7 is the largest. Therefore, a(14) = 7.
MATHEMATICA
Table[If[n == 1, 0, Max[Table[(PrimePi[i] - PrimePi[i - 1]) (PrimePi[n - i] - PrimePi[n - i - 1]) Mod[i (n - i), n], {i, Floor[n/2]}]]], {n, 100}]
Table[Max[Mod[Times@@#, n]&/@Select[IntegerPartitions[n, {2}], AllTrue[#, PrimeQ]&]], {n, 80}]/.(-\[Infinity]->0) (* Harvey P. Dale, Mar 24 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Nov 22 2020
STATUS
approved