OFFSET
0,3
EXAMPLE
Expressed as a sum of distinct primes, 12 = 5 + 7 = 2 + 3 + 7. Products are 5*7 = 35 and 2*3*7 = 42; 42 > 35, so a(12) = 42.
13 = 2 + 11; products are 13 = 13 and 2*11 = 22; 22 > 13, so a(13) = 22.
PROG
(PARI) alist(n)={local(v); v=vector(n, x, -1); forprime(p=2, n, forstep(h=n, p+1, -1, v[h]=max(v[h], v[h-p]*p)); v[p]=max(v[p], p)); v}
CROSSREFS
KEYWORD
sign
AUTHOR
Zhao Hui Du, May 23 2023
STATUS
approved